-
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
React native application generator uses wrong key name for resolver "blockList" #10328
Comments
As a followup to this, I've also found that the ignore pattern being used for
Basically removing the leading |
submit a pr #10607 to fix this |
@xiongemi thanks for the fix. Did you see my followup note above about the pattern not correctly ignoring the dist/ folder for nested application folders? |
@jaysoo since this is now closed should I open a new issue for the second problem I mentioned above? |
what if there is a library in node_modules with the dist folder that we could not block? |
yeah that was part of my concern with the pattern I used above, I don't think it's the "correct" fix. But I couldn't come up with a working pattern to specifically exclude just the root-level dist directory but not the dist/ folders in node_modules |
opened a new issue here: |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
When generating a new react native application, the app will not work if there is anything in the repo's dist/ directory due to a "Duplicate package name" error, as mentioned here:
#8669
The metro.config.js includes a setting called
resolver.blacklistRE
which is supposed to fix this problem. That setting was renamed in some version of metro to now beblockList
Expected Behavior
A newly generated react native app should start up correctly if there are built packages in the dist/ directory
Steps to Reproduce
nx serve
There will be an error about "duplicate packages" because the metro config does not properly ignore the dist/ directory
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: