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.

Cannot find module 'babel-core'

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Comments:27 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
a-marcelcommented, Apr 5, 2020

Any news here to support β€œ@babel/core” ?

2reactions
BentoumiTechcommented, Dec 5, 2018

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

Read more comments on GitHub >

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

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