module federation react application giving error post v8 migration, anyone facing this ? #12433
Replies: 5 comments 2 replies
-
| I've resolved this issue, but I think this is not the way it should be. I'd created |
Beta Was this translation helpful? Give feedback.
-
| I am facing the same problem here! |
Beta Was this translation helpful? Give feedback.
-
| Btw just like someone who need to resolve this for their project asap like I did, I share my script. ./scripts/update-sentry-version.js const fs = require('fs'); const path = require('path'); const currentDir = __dirname; const rootDir = path.resolve(currentDir, '..'); // Paths to the source and target package.json files const sourcePackageJsonPath = path.join( rootDir, 'node_modules/@sentry/react/package.json', ); const targetPackageJsonPath = path.join( rootDir, 'node_modules/@sentry/react/build/esm/package.json', ); // Check if the source package.json exists if (!fs.existsSync(sourcePackageJsonPath)) { console.error(`File not found: ${sourcePackageJsonPath}`); process.exit(1); } // Check if the target package.json exists if (!fs.existsSync(targetPackageJsonPath)) { console.error(`File not found: ${targetPackageJsonPath}`); process.exit(1); } // Read and parse the source package.json const sourcePackageJson = JSON.parse( fs.readFileSync(sourcePackageJsonPath, 'utf8'), ); // Read and parse the target package.json const targetPackageJson = JSON.parse( fs.readFileSync(targetPackageJsonPath, 'utf8'), ); // Update the version in the target package.json targetPackageJson.version = sourcePackageJson.version; // Write the updated target package.json back to the file fs.writeFileSync( targetPackageJsonPath, JSON.stringify(targetPackageJson, null, 2), ); console.log( `Version ${sourcePackageJson.version} updated in ${targetPackageJsonPath}`, );And then, add package.json "postinstall": "node ./scripts/update-sentry-version.js" |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
| This issue is fixed in @sentry/react@8.35.0-beta.0... |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Warning i got in build console, shared module @sentry/react -> /node_modules/@sentry/react/esm/index.js
No version specified and unable to automatically determine one. No version in description file (usually package.json). Add version to description file /node_modules/@sentry/react/esm/package.json, or manually specify version in shared config.
Few observation :
File node_modules/@sentry/react/esm/package.json was not present in v7
Work around :
Beta Was this translation helpful? Give feedback.
All reactions