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

allow module that exports only the function #77

Closed
hrgdavor opened this issue Jan 17, 2024 · 7 comments · Fixed by #78
Closed

allow module that exports only the function #77

hrgdavor opened this issue Jan 17, 2024 · 7 comments · Fixed by #78

Comments

@hrgdavor
Copy link
Owner

as discussed here jscad/OpenJSCAD.org#1318 (comment)

this script does not work and it should to match openjscad.xyz

module.exports=function main(){return require('@jscad/modeling').primitives.sphere({radius: 50})}
platypii pushed a commit that referenced this issue Jan 17, 2024
@Hermann-SW
Copy link
Contributor

Hermann-SW commented Jan 17, 2024

@hrgdavor
I tested under Debian based 64bit Raspberry Pi OS.
Works for firefox !
Does not work (empty display) for chromium-browser :-(

chromium-browser console:
https://stamm-wilbrandt.de/images/browser_console_77.png

@hrgdavor
Copy link
Owner Author

@Hermann-SW that is strange, it works on my PC, chrome and vivaldi browser. could it be cahce ? try CTRL+F5 ?

@Hermann-SW
Copy link
Contributor

@hrgdavor The browser is not chrome, that does not exist for ARM.
I pressed CTRL+F5 and recorded with peek screenrecorder.
After quite some activity, no display:
https://stamm-wilbrandt.de/videos/Peek_2024-01-17_22-04.gif

@hrgdavor
Copy link
Owner Author

@Hermann-SW it is hard to tell what could be the issue.

Do other scripts work on that chromium in jscad.app ?.
I am interested if the issue is data:url for that chromium or the script itself ?

@Hermann-SW
Copy link
Contributor

@hrgdavor other scripts work in chromium browser.
And the small script in editor without data uri does not work either in chromium.
Perhaps one of your developers has access to a Raspberry Pi SBC and can test with chromium.

@hrgdavor
Copy link
Owner Author

Perhaps one of your developers has access to a Raspberry Pi SBC and can test with chromium.

Sadly, I doubt. me a @platypii are active here, and we both contribute to jscad along with one more developer taht is main dev of jscad.

If you want, come to our discord, and we could see if we can get to bottom of this. Maybe even some remote desktop access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants