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.

Module not found: Can't resolve '@babel/runtime/helpers/builtin/assertThisInitialized'

See original GitHub issue

I’m getting this error while running npm start in my react application.

Failed to compile.

./node_modules/@material-ui/core/ButtonBase/TouchRipple.js Module not found: Can’t resolve ‘@babel/runtime/helpers/builtin/assertThisInitialized’ in ‘/Users/avishek/workspace/react/scout-app/node_modules/@material-ui/core/ButtonBase’

npm install command is working properly, but when I’m trying to start the application it’s giving the above mentioned error. I’ve tried with other options like: removing node_modules folder and package-lock.json file, but that doesn’t help at all.

Here is my package.json file

{ “name”: “scout-app-mui”, “version”: “0.1.0”, “private”: true, “dependencies”: { “@material-ui/core”: “1.4.2”, “@material-ui/icons”: “1.1.0”, “autosuggest-highlight”: “^3.1.1”, “axios”: “^0.16.2”, “classnames”: “^2.2.5”, “firebase”: “^4.13.1”, “history”: “^4.7.2”, “html-react-parser”: “^0.4.1”, “jss”: “^9.4.0”, “jss-preset-default”: “^4.0.1”, “prop-types”: “^15.6.0”, “react”: “^16.3.2”, “react-autosuggest”: “^9.3.2”, “react-avatar-editor”: “^11.0.2”, “react-dom”: “^16.3.2”, “react-facebook-login”: “^4.0.1”, “react-google-login”: “^3.1.0”, “react-jss”: “^8.2.0”, “react-loadable”: “^4.0.5”, “react-media”: “^1.6.1”, “react-redux”: “^5.0.6”, “react-router-dom”: “^4.2.2”, “react-select”: “^1.2.1”, “react-share”: “^2.1.1”, “recharts”: “^1.0.0-beta.10”, “recompose”: “^0.26.0”, “redux”: “^3.7.2”, “redux-devtools-extension”: “^2.13.2”, “redux-form”: “^7.3.0”, “redux-thunk”: “^2.2.0” }, “devDependencies”: { “babel-eslint”: “^8.0.2”, “body-parser”: “^1.18.2”, “eslint”: “^4.12.0”, “eslint-config-airbnb”: “^16.1.0”, “eslint-friendly-formatter”: “^3.0.0”, “eslint-loader”: “^1.9.0”, “eslint-plugin-import”: “^2.8.0”, “eslint-plugin-jsx-a11y”: “^6.0.3”, “eslint-plugin-react”: “^7.5.1”, “express”: “^4.16.2”, “react-scripts”: “^1.1.4” }, “scripts”: { “start”: “react-scripts start”, “build”: “react-scripts build”, “test”: “react-scripts test --env=jsdom”, “eject”: “react-scripts eject” } }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

20reactions
samphirecommented, Oct 27, 2018

I’m trying to learn react, I’m ten minutes in and this nonsense starts. I’m going back to vanilla javascript.

4reactions
mririgoyencommented, Aug 6, 2018

Please do not close this issue. This is a real issue and it stems from the update of the dependency “recompose”. Please see: https://github.com/acdlite/recompose/issues/723

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Can't resolve @babel/runtime/helpers
To solve the error "Module not found: Error: Can't resolve '@babel/runtime/helpers'", make sure to install the @babel/runtime package by opening your terminal ...
Read more >
How to fix - Module not found: Can't resolve '@babel/runtime ...
You can install @babel/runtime to fix the problem: Using npm: npm install --save @babel/runtime. Using yarn: yarn add @babel/runtime.
Read more >
Module not found: Can't resolve '@babel/runtime/helpers ...
I looked in my node_modules folder and the file for "assertThisInitialized" is in there, but the compiler can't seem to find it.
Read more >
babel/plugin-transform-runtime
A plugin that enables the re-use of Babel's injected helper code to save on codesize.
Read more >
@babel/runtime - npm
babel's modular runtime helpers. Latest version: 7.20.7, last published: 6 days ago. Start using @babel/runtime in your project by running ...
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