#p5.vscode extension
9 messages · Page 1 of 1 (latest)
so in Sketch.js you are trying to use stuff from Star.js, if I interpret that right. In processing, files in the same directory are imported automatically for you. this is not the case in p5!. The first thing I would like to ask therefore is, if you imported Star.js in your sketch.js?
I'm not exactly familiar with your entire environment, i am not sure what jsoconfig.json belongs to (and if its "include" directive would pick up Star correctly automatially) though.
jsconfig.json is only used in the build step by the JavaScript language server (within vscode for autocompletion, etc). To import your Star.js file, you need to add another script tag inside index.html referencing it.
yes
thanks all