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
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
Including lodash.zip as a dependency in my React-Native project causes the following error to be thrown by the metro bundler:
error: bundling failed: ReferenceError: SHA-1 for file /my_project_dir/node_modules/lodash.zip (/my_project_dir/node_modules/lodash.zip) is not computed
at DependencyGraph.getSha1 (/my_project_dir/node_modules/metro/src/node-haste/DependencyGraph.js:259:13)
at /my_project_dir/node_modules/metro/src/DeltaBundler/Transformer.js:211:26
...
My guess is that because the folder in node_modules for this particular dependency happens to be called something with '.zip' in it (lodash.zip), the bundler erroneously thinks that it is some sort of .zip file that it needs to check.
I am using metro version 0.54.1 which is the version used in the latest version of React-Native (0.60.4).
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.
Be in any React-Native project using RN 0.60.4 (metro version 0.54.1)
yarn add lodash.zip
react-native run-android
Observe error described above.
What is the expected behavior?
The metro bundler should not fail bundling.
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
Metro configuration:
Ah, in my case this is a dependency of another module. I'd be happy to take a crack at a PR to fix this but would probably need some guidance on where to look in the codebase.
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
Including
lodash.zip
as a dependency in my React-Native project causes the following error to be thrown by the metro bundler:My guess is that because the folder in
node_modules
for this particular dependency happens to be called something with '.zip' in it (lodash.zip
), the bundler erroneously thinks that it is some sort of .zip file that it needs to check.I am using metro version
0.54.1
which is the version used in the latest version of React-Native (0.60.4
).If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can
yarn install
andyarn test
.0.60.4
(metro version0.54.1
)yarn add lodash.zip
react-native run-android
What is the expected behavior?
The metro bundler should not fail bundling.
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
Metro configuration:
Metro version:
0.54.1
node:
12.4.0
yarn:
1.13.0
operating system: macOS Mojave
10.14.5
The text was updated successfully, but these errors were encountered: