You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.
reaction cli npm installs if it detects a package.jsoninside a plugin which is good. However, if something like react is installed in the local node_modules of a plugin then things go crazy when imported. Like the highlander, there can only be one.
Maybe theres a way to install some node modules to the root app node_modules so that we can avoid duplicate, conflicting modules.
I attempted to do so with script in the install script for npm like so:
Which seems to trigger on install when running reaction with reaction-cli. However, it's feels kinda brittle to do a npm install --prefix ../../../../../ install some-package if we were to ever move. And symlink plugins would require more path resolution logic.
The text was updated successfully, but these errors were encountered:
reaction cli
npm
installs if it detects apackage.json
inside a plugin which is good. However, if something likereact
is installed in the localnode_modules
of a plugin then things go crazy when imported. Like the highlander, there can only be one.Maybe theres a way to install some node modules to the root app node_modules so that we can avoid duplicate, conflicting modules.
I attempted to do so with script in the install script for npm like so:
inside /imports/plugins/custom/my-plugin
package.json
scripts/install.js
Which seems to trigger on install when running reaction with
reaction-cli
. However, it's feels kinda brittle to do anpm install --prefix ../../../../../ install some-package
if we were to ever move. And symlink plugins would require more path resolution logic.The text was updated successfully, but these errors were encountered: