Comments (3)
Hi @ElSeniorMikael,
thank you for opening the separate issue. Could you share how does you metro.config.js
looks like?
from sentry-wizard.
@krystofwoldrich there's my metro.config.js
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const defaultConfig = getDefaultConfig(__dirname);
const {assetExts, sourceExts} = defaultConfig.resolver;
/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const jsoMetroPlugin = require('obfuscator-io-metro-plugin')(
{
// for these option look javascript-obfuscator library options from above url
compact: false,
sourceMap: false,
controlFlowFlattening: true,
controlFlowFlatteningThreshold: 1,
numbersToExpressions: true,
simplify: true,
stringArrayShuffle: true,
splitStrings: true,
stringArrayThreshold: 1,
},
{
runInDev: false /* optional */,
logObfuscatedFiles: true /* optional generated files will be located at ./.jso */,
// source Map generated after obfuscation is not useful right now
sourceMapLocation:
'./index.android.bundle.map' /* optional only works if sourceMap: true in obfuscation option */,
},
);
const config = {
transformer: {
babelTransformerPath: require.resolve('react-native-svg-transformer'),
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
resolver: {
assetExts: assetExts.filter(ext => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
},
...jsoMetroPlugin,
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
from sentry-wizard.
Thank you @ElSeniorMikael,
we'll test this config with the wizard, which should produce the same error as you are experiencing. We will keep you posted.
from sentry-wizard.
Related Issues (20)
- Nextjs pages router wizard fails after latest update
- The official document of Sentry indicates that Vue3 has been supported, but the command indicates that it does not have this platform. Is it supported? HOT 1
- sentry.properties file does not contain all needed fields HOT 6
- [Remix] Create example route to verify setup HOT 2
- Sentry wizard overrides nvm configuration HOT 4
- Deprecated `configureScope` is used in a few templates HOT 1
- Sentry Wizard should not be opinionated HOT 5
- Should give the option to use npm install --force if necessary HOT 3
- Wizard hangs when running `npx @sentry/wizard@latest -i sourcemaps` HOT 1
- Unable to disable ssl verification for self-signed certs HOT 2
- Avoid using deprecated methods HOT 1
- Can't install sentry on nextjs 13.4.19 HOT 3
- Error during setup with wizard on a brand new react-native project HOT 10
- Add `spotlight: true` comment to relevant `Sentry.init` snippets HOT 4
- Update React Native Xcode build phase patch to avoid `react-native-version` crash
- Installation fails because it assumes bun is installed HOT 2
- Should have option to create new project right after login in wizard cli HOT 1
- @sentry/remix not working when installed through Sentry Wizard HOT 7
- The setup wizard fails when used with pnpm and workspaces HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-wizard.