-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I have made few changes in the project, mainly translating texts. It works fine using "yarn dev".
I open Chrome and I can view my changes in "localhost:3002"
I'm trying to package the project with "yarn electron-packager . OpendeckConfigurator --overwrite --platform=win32 --arch=x64" but when I execute OpendeckConfigurator.exe and the window shows nothing. I used CTRL-SHIFT-I to show the problem. I saw that "index.html" couldn't find the file "main.ts". I solved this problem changing "<script type="module" src="/src/main.ts"></script>" for "<script type="module" src="./src/main.ts"></script>"
I have packaged the project again, and still is not working. This time. the error showed in the windows of the OpenDescConfigurator refering to the "main.ts", is:
"Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "video/vnd.dlna.mpeg-tts". Strict MIME type checking is enforced for module scripts per HTML spec."
I haven't made changes in files like "main.js", "main.ts", "tsconfig.json", "package.json".
To be sure, I downloaded 202306291358 again. I tried to package and the result was the same. I had to correct "index.html" and finally I get the same problem.
I'm sure that I'm doing something wrong but I have no idea what.
Any suggestions?
Thanks