-
I am creating a jscad script that imports another script. I would like to test this visually to see how it renders, so I downloaded the web viewer and tried to load it. However the browser can't find the script I'm importing and gives the error "Uncaught Error: Cannot find relative path to module". I assume if I import third party npm modules I will get that error as well. Is there a way to test this in the web viewer? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@napter thanks for using JSCAD. So, from what you explained, you’ll want to create a project directory, and put all your components inside the directory. Then drag and drop the project directory to the webpage. there are some example projects in the examples. See the module-design https://github.com/jscad/OpenJSCAD.org/tree/master/packages/examples |
Beta Was this translation helpful? Give feedback.
@napter thanks for using JSCAD.
So, from what you explained, you’ll want to create a project directory, and put all your components inside the directory. Then drag and drop the project directory to the webpage.
there are some example projects in the examples. See the module-design
https://github.com/jscad/OpenJSCAD.org/tree/master/packages/examples