Skip to content
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

Module not found: Can't resolve '@babel/runtime/helpers/builtin/assertThisInitialized' in 'C:\Users\usr\proj\node_modules\@material-ui\core\ButtonBase' #12407

Closed
charlie632 opened this issue Aug 4, 2018 · 11 comments
Labels
duplicate This issue or pull request already exists

Comments

@charlie632
Copy link

I just installed Material-UI and copied an example from the docs and encoutered this error. I looked in my node_modules folder and the file for "assertThisInitialized" is in there, but the compiler can't seem to find it.

@calebj0seph
Copy link

This seems to be caused by the v7.0.0-beta.56 release of @babel/runtime, which split part of the package up into @babel/runtime-corejs2. Material-UI lists ^7.0.0-beta.42 as the version range for @babel/runtime, which will select the latest release v7.0.0-beta.56, causing this issue.

For a quick workaround, you can try npm install --save-exact @babel/[email protected] if using npm or yarn add @babel/[email protected] --exact if using Yarn.

@calebj0seph
Copy link

Caused by babel/babel#8266.

@charlie632
Copy link
Author

Solved! Thanks a lot!

@nareshbhatia
Copy link
Contributor

Ran into this issue just now. @calebj0seph, thanks for the workaround. However, I think this issue should be kept open for a permanent fix.

cc. @oliviertassinari, @mbrookes

@charlie632
Copy link
Author

Reopening

@charlie632 charlie632 reopened this Aug 4, 2018
@oliviertassinari
Copy link
Member

@nareshbhatia It should be OK with v1.4.3

@oliviertassinari oliviertassinari added the duplicate This issue or pull request already exists label Aug 4, 2018
@oliviertassinari
Copy link
Member

It's a duplicate of #12408.

@calebj0seph
Copy link

@nareshbhatia @charlie632 This has already fixed in #12409, so you can keep this closed 🙂

@nareshbhatia
Copy link
Contributor

@oliviertassinari, just saw your commit. Thanks for the amazing response time.

@oliviertassinari
Copy link
Member

oliviertassinari commented Aug 4, 2018

@nareshbhatia We had almost no star for 10 hours. It was the sign something was really wrong. 20 👍 on a issue in less than 10 hours. I have never seen that here before.

@nareshbhatia
Copy link
Contributor

@oliviertassinari amazing tips on how to monitor a repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants