Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add js package dependency to plugin. #29

Open
cjohn001 opened this issue Jun 9, 2022 · 1 comment
Open

Cannot add js package dependency to plugin. #29

cjohn001 opened this issue Jun 9, 2022 · 1 comment

Comments

@cjohn001
Copy link

cjohn001 commented Jun 9, 2022

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.

@febriarief
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants