I am trying to import the p5.js npm package (installed) in my code like such:
import p5 from ‘p5'
However, I get an error in the console like the following:
Cannot find module ‘colorjs.io/fn’ in ‘/dynamic-modules/yarn-cache/cache/p5-npm-2.1.1-97603d1796-8c0.zip/node_modules/p5/dist/accessibility’
This isn’t an issue with my Wix environment as other packages worked fine. It also isn’t an issue with the package as it works in other non-Wix environments.
Has anyone encountered similar peer-dep issues and has found a solution?