# NPM Package Peer Dependencies

**URL:** <https://forum.wixstudio.com/t/npm-package-peer-dependencies/75111>\
**Category:** Ask the community\
**Tags:** sdk, code, wix-studio\
**Created:** [November 21, 2025, 3:01am UTC](https://forum.wixstudio.com/t/npm-package-peer-dependencies/75111 "2025-11-21T03:01:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Donald\_Zhu](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/donald_zhu/32/112645_2.png) [@Donald\_Zhu](https://forum.wixstudio.com/u/Donald_Zhu)\
**Post date:** [November 21, 2025, 3:01am UTC](https://forum.wixstudio.com/t/npm-package-peer-dependencies/75111/1 "2025-11-21T03:01:14Z")

</div>

I am trying to import the [p5.js npm package](https://www.npmjs.com/package/p5) (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’](http://colorjs.io/fn%E2%80%99) 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?
