Replies: 4 comments 3 replies
-
Edit: Checked the networking tab in dev tools from Firefox: it seems example.py, when fetched, somehow fetches index.html instead. |
Beta Was this translation helpful? Give feedback.
-
Thank you for opening this issue with us @XLuma, I'm turning this issue into a discussion 😄 can you provide your code? From the traceback its hard to see what's happening |
Beta Was this translation helpful? Give feedback.
-
I did some more testing: it seems the issue arises when using Node to host a web server. Tested using python http.server, which works perfectly fine to start a web server, and referenced scripts will work just fine. |
Beta Was this translation helpful? Give feedback.
-
I got same error with the simple code like in the file |
Beta Was this translation helpful? Give feedback.
-
Checklist
What happened?
adding the src argument to py-script tag causes pyscript to not execute code in local modules imported with the src tag. Manually writing code inside tags work normally though
This wasn't happening until today. Not exactly sure what is happening
What browsers are you seeing the problem on? (if applicable)
No response
Console info
Additional Context
using npm to fire up a web server
Beta Was this translation helpful? Give feedback.
All reactions