NPM issues?

Is there currently a problem with the NPM packages? Everything I'm trying to create at the moment is creating errors for packages that can not be resolved... chroma-js express canvas To name a few
Solution:
Hi @Chris Wright | Brandmember You can use AI to generate node with AI, it will import the desired packages correctly, you can specify in prompt to use which package. https://docs.buildship.com/ai-nodes Also, if you import manually, make sure to always import any npm package using Named import declaration. Example: import module from "module-name"; & import chroma from "chroma-js";;...
Jump to solution
3 Replies
AI Support
AI Support3mo ago
AI Support Bot Information
<@797926148549378059> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
Solution
Gaurav Chadha
Gaurav Chadha3mo ago
Hi @Chris Wright | Brandmember You can use AI to generate node with AI, it will import the desired packages correctly, you can specify in prompt to use which package. https://docs.buildship.com/ai-nodes Also, if you import manually, make sure to always import any npm package using Named import declaration. Example: import module from "module-name"; & import chroma from "chroma-js";;
Chris Wright | Brandmember
One of the errors did come from a Buildship AI generated node and when I use AI outside of Buildship always make sure it is using named import declaration, that's why I'm stumped things aren't working.