layout | title | date | excerpt | categories |
---|---|---|---|---|
post |
Babel runtime error |
2018-09-18 12:33:45 -0700 |
How to resolve the error "Cannot find module '@babel/runtime/helpers/builtin/interopRequireDefault' from 'index.js'". |
babel npm |
After upgrading the dependencies of a project, this error showed up:
Cannot find module '@babel/runtime/helpers/builtin/interopRequireDefault' from 'index.js'
The solution was to install a specific version of babel runtime:
npm install --save-dev --exact @babel/runtime@7.0.0-beta.55