Ifan03 with tasmota to ha

How did you copy the file from github? Did you click on “raw” from the top of the code box and copy the code from there?

What does the code you put in the resources: section of lovelace look like?

And did you restart HA after you added the js file and added the code to the resources: section?

My recommendation is to use HACS to install any custom component. It makes installing a breeze and it always installs things correctly.