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.
Yep. An unfortunate side effect of nested package.json files. They overwrite those aliases. The only solution I currently know of is checking every plugin's package.json and altering it if the root level package.json has an alias that the plugin's file doesn't. That could get a little messy because people would need to know why that's happening and make sure to commit that change to their repos. Certainly not impossible to automate, but it'd take some planning/testing to get something reliable working. And we're making efforts toward migrating to an entirely npm package plugin system, so that would also make this problem go away.
I'm having this issue currently, but I'm new to reaction. @jshimko Can you please guide me on how to go about creating aliases in the plugin's package.json like the one in root
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
the generated package.json does not define our common @reactioncommerce aliases.
This makes it impossible to write:
import { registerComponent, getHOCs, getRawComponent } from "@reactioncommerce/reaction-components";
Reproduce:
reaction plugins create --name my-plugin
imports/plugins/custom/my-plugin/client/index.js
modules-runtime.js:261 Uncaught Error: Cannot find module '@reactioncommerce/reaction-components'
The text was updated successfully, but these errors were encountered: