Cannot find module 'babel-core'
See original GitHub issueDescribe the bug
I followed the React tutorial instructions to add js-lingui to my Gatsby v1 app (including npm install --global babel-core@^7.0.0-0 @babel/core
), but when running lingui extract
I get Cannot find module 'babel-core'
.
Iβm very rusty with Node development so I might have misunderstood something!
To Reproduce
See this repo. yarn
+ gatsby develop
works, the app runs as expected, but I get the above error when running lingui extract
to regenerate the message catalog.
Expected behavior
lingui extract
should succeed.
Additional context
lingui --version
: 2.4.1
$ npm list babel-core @babel/core
lingui-babel-debug@0.0.1 /Users/sdubois/Repos/lingui-babel-debug
βββ @babel/core@7.0.0-rc.1
βββ¬ babel-core@6.26.3
β βββ¬ babel-register@6.26.0
β βββ babel-core@6.26.3 deduped
βββ¬ babel-webpack-plugin@0.1.1
β βββ babel-core@6.26.3 deduped
βββ¬ gatsby@1.9.277
βββ babel-core@6.26.3 deduped
βββ¬ postcss-import@8.2.0
βββ¬ pkg-resolve@0.1.14
βββ¬ jspm@0.17.0-beta.48
βββ¬ systemjs-builder@0.16.13
βββ babel-core@6.26.3 deduped
$ npm list -g babel-core @babel/core
/usr/local/lib
βββ @babel/core@7.0.0-rc.1
βββ babel-core@7.0.0-bridge.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:27 (13 by maintainers)
Top Results From Across the Web
Cannot find module '@babel/core' - node.js - Stack Overflow
Try running this. npm install @babel/core --save. babel changed their package so your babel-core will not be the same as @babel/core .
Read more >Cannot find module '@babel/core' error [Solved] | bobbyhadz
To solve the error "Cannot find module '@babel/core'", make sure to install the @babe/core package by opening your terminal in your project's root...
Read more >Cannot find module 'babel-core' Β· Issue #124 - GitHub
I've just updated from 6.1.2 to 7.0.0 and I now get this error message: [17:08:05] 'requirejs' errored after 68 ms [17:08:05] Error: Cannot...
Read more >Fix the Cannot find module '@babel/core' error - Reactgo
First, remove the node_modules folder, package-lock.json file present inside your project directory by using the below command. rm-rfΒ ...
Read more >mochajs/mocha - babel-core/register - Gitter
just like mocha and enzyme and I'd still get 'command not found', 'module not found'.. I've done a few circles like that. I'll...
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
Any news here to support β@babel/coreβ ?
Iβve also had the same issue with next.js 7.0.2
The issue on my side was fixed by install babel bridge this way
yarn add @lingui/cli@2.7.2 babel-core@7.0.0-bridge.0 @babel/core