Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong path to ".jsc" in sub_window #24

Open
mcjambi opened this issue Mar 3, 2023 · 4 comments
Open

Wrong path to ".jsc" in sub_window #24

mcjambi opened this issue Mar 3, 2023 · 4 comments
Labels
needs reproduction The author did not provide a reproduction repository potential bug

Comments

@mcjambi
Copy link

mcjambi commented Mar 3, 2023

i have a screenplay folder and that has a renderer, preload and many assets. All works normally!
After adding your plugin, my code break all.

After 15 minutes of researching, i find out:
Error in console: "Uncaught Error: Cannot find module './sub_window.compiled.jsc'"
Cause by:
My index.html has included sub_window.js, in subwindow.js include "./sub_window.compiled.jsc", but actually it must be "../sub_window.compiled.jsc" because it is included in sub_window/index.html

Right now i have to modified my code after run built. Just adding a DOT in a file :D

Screenshot 2023-03-03 104845

@herberttn
Copy link
Owner

@mcjambi can you make a reproduction repository so I can try to fix it?

@herberttn herberttn added bug Something isn't working needs reproduction The author did not provide a reproduction repository potential bug and removed bug Something isn't working labels Mar 3, 2023
@herberttn
Copy link
Owner

@mcjambi does this still happen? If so, can you create a reproduction repo?

@iamisti
Copy link

iamisti commented Jan 3, 2024

im getting the same error but I have no idea how to fix it. Somehow it does not find the jsc files. It's there in the folder, but the path might be wrong.
How do align/change what path it's looking for to find the jsc files?

@iamisti
Copy link

iamisti commented Jan 3, 2024

i have a screenplay folder and that has a renderer, preload and many assets. All works normally! After adding your plugin, my code break all.

After 15 minutes of researching, i find out: Error in console: "Uncaught Error: Cannot find module './sub_window.compiled.jsc'" Cause by: My index.html has included sub_window.js, in subwindow.js include "./sub_window.compiled.jsc", but actually it must be "../sub_window.compiled.jsc" because it is included in sub_window/index.html

Right now i have to modified my code after run built. Just adding a DOT in a file :D

Screenshot 2023-03-03 104845

can you please show me what you did? I can't figure it out. I have the same issue as you described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction The author did not provide a reproduction repository potential bug
Projects
None yet
Development

No branches or pull requests

3 participants