plugin-seed icon indicating copy to clipboard operation
plugin-seed copied to clipboard

Cannot add js package dependency to plugin.

Open cjohn001 opened this issue 2 years ago • 1 comments

Hello, I have created a plugin and tried to add a dependency to it. I tried it by going to

packages/pluginname/package.json and adding

"dependencies": { "package": "^version" }

However, the package is not installed into node_modules. I also tried npm i from the plugin folder. This creates a node_modules folder with the package. However, when trying to build a demo than it seems like node_modules in the plugin folder is not used and build fails. Would be great if you could add an explanation on how I can install additional npm packages to a plugin, in case this is not a bug.

cjohn001 avatar Jun 09 '22 16:06 cjohn001

I think we have to install the plugin in the root of the project

febriarief avatar Nov 28 '23 05:11 febriarief