question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 😯

Screen Shot 2020-12-14 at 5 19 19 AM

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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
kirill-konshincommented, Nov 29, 2021

@oliviertassinari please help to solve this… getting Module Federation warnings while simply using MUI is a distraction for dev experience.

2reactions
kirill-konshincommented, Nov 5, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found