Open
Description
It seems that since expo@v52, the source map generation and upload script stopped working. This may be related with the fact that v52 now enables the new architecture by default.
To reproduce:
npx create-expo-app@latest --template bare-minimum
npm install @honeybadger-io/react-native
- Modify
node_modules/@honeybadger-io/react-native/scripts/honeybadger-upload-sourcemaps.sh
and remove the output redirection (> /dev/null 2>&1
) from the npx react-native commands to see the error output in the console npx honeybadger-upload-sourcemaps --apiKey ABCDEFG --revision dev --skip-upload
The console output:
Generating the Android source map ...
Generating the iOS source map ...
● Validation Warning:
Unknown option "serializer.isThirdPartyModule" with value isThirdPartyModule(module) {
// Block virtual modules from appearing in the source maps.
if ((0, sideEffects_1.isVirtualModule)(module.path))
return true;
// Generally block node modules
if (/(?:^|[/\\])node_modules[/\\]/.test(module.path)) {
// Allow the expo-router/entry and expo/AppEntry modules to be considered first party so the root of the app appears in the trace.
return !module.path.match(/[/\\](expo-router[/\\]entry|expo[/\\]AppEntry)/);
}
return false;
} was found.
This is probably a typing mistake. Fixing it will remove this message.
● Validation Warning:
Unknown option "server.forwardClientLogs" with value true was found.
This is probably a typing mistake. Fixing it will remove this message.
● Validation Warning:
Unknown option "symbolicator.customizeStack" with value async (stack, _) => stack was found.
This is probably a typing mistake. Fixing it will remove this message.
● Validation Warning:
Unknown option "watcher.unstable_lazySha1" with value true was found.
This is probably a typing mistake. Fixing it will remove this message.
● Validation Warning:
Unknown option "watcher.unstable_workerThreads" with value false was found.
This is probably a typing mistake. Fixing it will remove this message.
● Validation Warning:
Unknown option "watcher.unstable_autoSaveCache" with value {"debounceMs": 5000, "enabled": true} was found.
This is probably a typing mistake. Fixing it will remove this message.
● Validation Warning:
Unknown option "unstable_perfLoggerFactory" with value () => {
class Logger {
start() {}
end() {}
annotate() {}
point() {}
subSpan() {
return this;
}
}
return new Logger();
} was found.
This is probably a typing mistake. Fixing it will remove this message.
warning: the transform cache was reset.
Welcome to Metro v0.73.8
Fast - Scalable - Integrated
error SHA-1 for file /Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro-config/node_modules/metro-runtime/src/polyfills/require.js (/Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro-config/node_modules/metro-runtime/src/polyfills/require.js) is not computed.
Potential causes:
1) You have symlinks in your project - watchman does not follow symlinks.
2) Check `blockList` in your metro.config.js and make sure it isn't excluding the file path.
ReferenceError: SHA-1 for file /Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro-config/node_modules/metro-runtime/src/polyfills/require.js (/Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro-config/node_modules/metro-runtime/src/polyfills/require.js) is not computed.
Potential causes:
1) You have symlinks in your project - watchman does not follow symlinks.
2) Check `blockList` in your metro.config.js and make sure it isn't excluding the file path.
at DependencyGraph.getSha1 (/Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro/src/node-haste/DependencyGraph.js:194:13)
at Transformer._getSha1 (/Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro/src/Bundler.js:26:26)
at Transformer.transformFile (/Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro/src/DeltaBundler/Transformer.js:108:19)
at Bundler.transformFile (/Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro/src/Bundler.js:60:30)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.transform (/Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro/src/lib/transformHelpers.js:147:12)
at async Graph._processModule (/Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro/src/DeltaBundler/Graph.js:214:20)
at async Graph._traverseDependenciesForSingleFile (/Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro/src/DeltaBundler/Graph.js:207:5)
at async Promise.all (index 0)
at async Graph.initialTraverseDependencies (/Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/node_modules/metro/src/DeltaBundler/Graph.js:191:5)
info Run CLI with --verbose flag for more details.
Hermes is enabled ...
mv: rename /Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/examples/expo-app-v52/node_modules/.bin/../../main.jsbundle.packager.map to /Users/pangratioscosma/Work/honeybadger/honeybadger-js/packages/react-native/examples/expo-app-v52/node_modules/.bin/../../main.jsbundle.map: No such file or directory
Source maps generated.
iOS: main.jsbundle.map
Android: index.android.bundle.map
Skipping upload.