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
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:
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";;