KrisCris / Palworld-Pal-Editor

Palworld Pal Editor, the tool for Adding, Deleting, and Modifying Pals (and unlocking Viewing Cage for multiplayer) for Palworld Game Save, supports running on Docker, GUI, WebUI, and Cli.
https://www.nexusmods.com/palworld/mods/995
GNU General Public License v3.0
106 stars 11 forks source link

MIME Type Error #15

Closed nrlearn closed 2 months ago

nrlearn commented 2 months ago

Thank you for the application.

When I uses Palworld-Pal-Editor on pypi with web mode, it has an error "Failed to load module script..." in browser

To Reproduce Steps to reproduce the behavior:

conda create -m testenv python==3.11
conda activate testenv
conda install pip
pip install palworld-pal-editor
python -m palworld_pal_editor --mode web

Expected behavior it shows error in edge browser or chrome browser

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

Screenshots Snipaste_2024-04-05_12-32-50.

Desktop (please complete the following information):

KrisCris commented 2 months ago

Which version are you using? I am unable to reproduce this issue.

image

Likely the same issue: https://github.com/KrisCris/Palworld-Pal-Editor/issues/8#issuecomment-2036407453

Is this your first time running this tool? If not, try :

nrlearn commented 2 months ago

Which version are you using? I am unable to reproduce this issue.

image

Likely the same issue: #8 (comment)

Is this your first time running this tool? If not, try :

  • Unregister service workers (In the Application tab) if one is loaded (We used to have PWA support but I removed it due to some issues)
  • image
  • Force refresh the page (Hold Shift then click the refresh button)

The vision is 0.4.1.post2,this is my first time to run this tool. I tried the steps,but it didn't work. chrome1

I has searched this error message, it seems to be a windows platform specific problem, wish it helps. https://github.com/jupyterlite/jupyterlite/issues/569

KrisCris commented 2 months ago

I has searched this error message, it seems to be a windows platform specific problem, wish it helps.

I had just realized this issue, and have pushed a fix.

KrisCris commented 2 months ago

Can you test if pip install palworld-pal-editor==0.4.2 fix the issue

nrlearn commented 2 months ago

Can you test if pip install palworld-pal-editor==0.4.2 fix the issue

no problem,wait for a while

nrlearn commented 2 months ago

Can you test if pip install palworld-pal-editor==0.4.2 fix the issue

It fixed! thank you!

KrisCris commented 2 months ago

Thank you for reporting this issue!