Unable to find required version for "react" in description file
See original GitHub issue- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
Expected Behavior 🤔
Should have any warnigns
Steps to Reproduce 🕹
Install latest webpack with recommended setup
"@material-ui/core": "5.0.0-alpha.19",
"webpack": "5.10.1"
module: {
rules: [
{
test: /\.m?js$/,
type: 'javascript/auto',
resolve: {
fullySpecified: false,
},
},
}
Context 🔦
It seems that adding the package.json to the submodules cause some warnings with the latest Webpack
{
"sideEffects": false,
"module": "./index.js",
"main": "../node/useTheme/index.js",
"types": "./index.d.ts"
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Undetermined shared module version when importing a file ...
Unable to find required version for "react-dom" in description file (/home/user/test/node_modules/react-dom/package.json).
Read more >Module Federation, React, and Apollo 3 warnings
No required version specified and unable to automatically determine one. Unable to find required version for "react" in description file ...
Read more >Pitfalls with Module Federation and Angular
Unable to find required version for "@angular/common" in description file (C:\Users\Manfred\Documents\artikel\ModuleFederation-Pitfalls\example\ ...
Read more >Module Federation Series Part 1: A Little in-depth
No required version specified and unable to automatically determine one. Unable to find required version.. Shared config scenario: no required version specified.
Read more >ModuleFederationPlugin - webpack
Check out this live module federation example on StackBlitz. ... The package name that is used to determine required version from description file....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@oliviertassinari please help to solve this… getting Module Federation warnings while simply using MUI is a distraction for dev experience.
I suggest to reopen because this issue emits a ton of errors and with
webpack-dev-server@4
all of these errors are dumped to browser.I’ve stumbled upon this issue when I was using Webpack Module Federation.