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.

Can't `yarn start` the project after `yarn upgrade` (Module not found: Can't resolve '@babel/runtime/helpers/builtin/extends' in '/Users/alberto.iglesias/Coding/iteisa/projects/cam/node_modules/yup/lib')

See original GitHub issue

Hi,

I have a project created with create-react-app that is using yup. Today I have to run a yarn upgrade, and after that I can’t start the project. I get this error:

Module not found: Can’t resolve ‘@babel/runtime/helpers/builtin/extends’ in ‘/Users/alberto.iglesias/Coding/iteisa/projects/cam/node_modules/yup/lib’

Watching other issues, I’ve seen the babel beta.56 directory problem, so I’ve finally forced to add the babel beta.55 version, and is starting again. I think is valid as a temporary patch, but maybe there’s other packages installed by react-scripts that depends of beta.56, so I’m not sure if it’s going to generate other problems.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:21
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
klimashkincommented, Aug 7, 2018

If you use webpack, you can add an alias until yup is updated

resolve: {
  ...
  alias: {
    '@babel/runtime/helpers/builtin': path.resolve('./node_modules/@babel/runtime/helpers'),
    ...
4reactions
ctrlplusbcommented, Aug 6, 2018

This babel problem is giving me a world of pain. It’s affected a bunch of libs that I am using. I understand babel v7 is in beta, and breaking changes can be expected between versions, but it’s a pain when transitive dependencies cause your apps to fail. I’ve been trying to wrap my head around the babel v6 -> v7 movement, and why so many lib authors have moved so quickly onto depending on v7.

Can confirm that forcing an install of previous version of @babel/runtime sorts the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

yarn upgrade
Upgrades packages to their latest version based on the specified range. ... When no package names are specified, all dependencies will be upgraded....
Read more >
Module not found error using Yarn 2 to link React components
To fix the issue I had to add the reference to dependencies in package.json (even though I'd already run yarn link ):
Read more >
Why Running `yarn upgrade` Does Not Update My `package ...
json. Today I wanted to upgrade the dependency of React of one of my projects. So I ran. yarn upgrade react.
Read more >
Ran yarn upgrade and now can't recover to previous state
Now, when I run yarn build I get the error: webpack: command not found. ... any case now I can't seem to find...
Read more >
Migrating our Monorepo to Yarn 2 | DoltHub Blog
We can add our packages as dependencies in one another's package.json files exactly as with any other package, but they are resolved locally...
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