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?
Report a bug
Repro steps
I'm running Metro.runBuild() and getting the error Loading dependency graph...Failed to construct transformer: Error: Option 'mapper' isn't supported by the Node crawler at nodeCrawl (/****/node_modules/metro/node_modules/jest-haste-map/build/crawlers/node.js:227:11) at HasteMap._crawl (/***/node_modules/metro/node_modules/jest-haste-map/build/index.js:1021:14) at /***/node_modules/metro/node_modules/jest-haste-map/build/index.js:572:21
Note: this only repro's with watchman disabled.
resolver: { useWatchman: false }
What is the expected behavior?
No errors when bundling ;)
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
metro.config.js
How to fix
Note: This is caused by a bug in jest-haste-map that was fixed 2 days ago, so metro needs to update their dependency to the latest version of jest-haste-map - where they no longer throw this error and simply ignore the config option. This should fix the error! Otherwise - I am not sure where the 'mapper' option is being passed through, I assume this is somewhere in the metro code and should be removed. jestjs/jest#8558
The text was updated successfully, but these errors were encountered:
Until jest (or jest-haste-map) does a release that is integrated here you can use this (without the .txt extension I needed for github) in combination with patch-package to move forward jest-haste-map+24.8.0.patch.txt
I don't believe current versions of anything have this problem. I'd forgotten about it and no longer have the patch integrated. I'm on react-native 0.61.x now, so I think the answer is patch until you get current.
Do you want to request a feature or report a bug?
Report a bug
Repro steps
I'm running Metro.runBuild() and getting the error
Loading dependency graph...Failed to construct transformer: Error: Option 'mapper' isn't supported by the Node crawler at nodeCrawl (/****/node_modules/metro/node_modules/jest-haste-map/build/crawlers/node.js:227:11) at HasteMap._crawl (/***/node_modules/metro/node_modules/jest-haste-map/build/index.js:1021:14) at /***/node_modules/metro/node_modules/jest-haste-map/build/index.js:572:21
Note: this only repro's with watchman disabled.
resolver: { useWatchman: false }
What is the expected behavior?
No errors when bundling ;)
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
metro.config.js
metro version "metro": "0.54.0"
How to fix
Note: This is caused by a bug in jest-haste-map that was fixed 2 days ago, so metro needs to update their dependency to the latest version of jest-haste-map - where they no longer throw this error and simply ignore the config option. This should fix the error! Otherwise - I am not sure where the 'mapper' option is being passed through, I assume this is somewhere in the metro code and should be removed.
jestjs/jest#8558
The text was updated successfully, but these errors were encountered: