-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
sourceMapString
is not a function [v5.28.0]
#4005
Comments
We're having the same issue on a bare react-native project, is removing this createSentryMetroSerializer really the way to go here? This means source maps won't work properly anymore with sentry, see:
This was also generated by the sentry wizard.
Our metro.config file looks like this:
|
Hi @matthijsFoF basically at that time I bump the sentry react native version to 5.27.0 and removed that UPDATE: |
We aren't using Logs: Metro config file: const { getSentryExpoConfig } = require("@sentry/react-native/metro");
const { FileStore } = require("metro-cache");
const path = require("path");
module.exports = withTurborepoManagedCache(
withMonorepoPaths(getSentryExpoConfig(__dirname))
);
function withMonorepoPaths(config) {
const projectRoot = __dirname;
const workspaceRoot = path.resolve(projectRoot, "../..");
config.watchFolders = [workspaceRoot];
config.resolver.nodeModulesPaths = [
path.resolve(projectRoot, "node_modules"),
path.resolve(workspaceRoot, "node_modules"),
];
return config;
}
function withTurborepoManagedCache(config) {
config.cacheStores = [
new FileStore({ root: path.join(__dirname, "node_modules/.cache/metro") }),
];
return config;
} |
Hi @devphilipcesar, fixed for us now, thanks for the quick response! |
Our appcenter builds have started failing due to the same error.
These builds were working fine till Friday last week and then started failing without any library change from our end. Any help is appreciated here. Thanks! P.S.: I tried upgrading |
Hello everyone, It was fixed by this PR. Please upgrade to https://github.com/getsentry/sentry-react-native/releases/tag/5.28.0 |
@gretzky I see you mentioned you are on https://github.com/getsentry/sentry-react-native/releases/tag/5.28.0 but still seeing the error, could you check that your that the build is not using older version from cache? |
@atitpatel Could you share what errors are you getting? |
sourceMapString
is not a function [v5.28.0]
Hi, we are also on 5.28.0 and still seeing the error, @devphilipcesar @krystofwoldrich do you mind reopening this issue ? Expo 50 The same code build without issues ~2 weeks ago, but right now facing error below
|
@sieu-db p lease any update on that issue ? |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.26.0
react-native
version: 0.73.9Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
(
@sentry/react-native
)or
(
react-native-sentry
)I have the following issue:
[Description]
Steps to reproduce:
Actual result:
ANDROID
iOS
Expected result:
[Expected result]
The text was updated successfully, but these errors were encountered: