-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Compatiblity issue with Create React App not allow import outside of src/ #37
Comments
If I am right, what would be a good approach to address this issue? I am thinking
|
This issue is relevant for Linux or Unix platforms (e.g. Ubuntu, Mac OS), on Windows everything works properly. This is not There is open issue on the topic in Edit: Actually it may be |
Any solution for this without having to eject from CRA? |
Background:
Create React App
comes with a ModuleScopePlugin which ensures that relative imports from app's source directories don't reach outside of it, meaning whatever you're importing has to be either insrc/
ornode_modules
.But our plugin
node-polyfill-webpack-plugin
uses webpackrequire.resolve
, which returns the absolute path of packagesIf we trying to use
console
orpath
polyfill with CRACRA would report error
I created a reproduce repository here node-polyfill-webpack-plugin-cra-reproduce
Some other info
The text was updated successfully, but these errors were encountered: