-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Node_modules get cleared with package name missing error in the custom plugin for Reaciton Api. #6246
Comments
@ankurpata It would be helpful if you can link to a repo with a simple reproduction of this. There could be a lot of things happening, and we'd need to see exactly how you're linking the plugin and exactly how it is listing its dependencies. I notice you say |
@aldeed I'm having the same problem and I've created a flattened reproduction repo right here. Clone it, run Also, I confirm that it's happening with production dependencies. If you run |
On another note, since this looks reproducible and prevents (some) developers from working on mounted NPM modules, I would suggest that it deserves at least a |
@loan-laux @ankurpata Oh I see! I did not realize this was referring to plugins linked through volume mounts. In that case, yes we're aware of this issue. There is really no solution we could find when using volume mounts, which is why I created a different solution for local plugin development here: #6238 Using that branch, you should be able to do I'm hoping to document this and other aspects of local development that have changed this week. |
@aldeed This works great and looks exactly like what we needed. Thank you so much! @ankurpata, if this works for you, please close this issue. |
Cool, I'll try this out and close this if it works. |
@ankurpata please re-open if this is still an issue for you. |
Prerequisites
Issue Description
When tried to add a new dependency on to plugin in the package.json, the
make init-dev
command on reaction root directory should install all the dependencies provided in the custom plugin. Instead it clear the node_modules and fails to install again.Screenshots of node_modules and package.json in the custom plugin:
Error on Reaction api Docker logs:
Steps to Reproduce
node-rdkafka
make init-dev
Possible Solution
I faced this issue on MacOs, the docker must be using node-gyp to install dependencies for any additional npm package. It might work if it installed using ubuntu.
Versions
3.7.0
The text was updated successfully, but these errors were encountered: