Create-react-app: Cannot resolve module 'babel-runtime/*'

Created on 20 Jan 2017  Â·  8Comments  Â·  Source: facebook/create-react-app

This is probably more of a question than a bug report.

Recently, out of nowhere, I started having issues with missing babel-runtime:

So I checked the last commit (which was a while ago) and it passed all commit checks:
image

Now, if I do clean setup, clone the repo and try to build it, it fails. The only thing that might have changed during this time are dependencies (semantic updates).

Adding babel-runtime to my dependencies fixes this issue but I'm not sure if this is the right way to go about it?

bug

All 8 comments

This is weird. Is it still reproducible? Can you provide exact instructions to reproduce it?

I'll test this out again in the next day or two.

@gaearon I just removed babel-runtime and it builds now without it. Not sure what exactly was the issue but I guess we can close this now.

🤔

Sometimes it's healthier not to know.

I'm seeing this issue in a different setup.
Since npm install is not deterministic, I'm thinking that babel-runtime
ends up differently in the node_modules hierarchy and surfaces a problem
with a dependency's package.json.

On Thu, Feb 9, 2017 at 10:39 PM, Dan Abramov notifications@github.com
wrote:

Sometimes it's healthier not to know.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/facebookincubator/create-react-app/issues/1421#issuecomment-278782356,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AArOQalhvj86b56Qzd8poNBOMheAXCH5ks5ra4elgaJpZM4LpS0K
.

--
andreineculau.com http://www.andreineculau.com

Maybe some module (semantic-ui-react judging by first post's CI log) that depends on it forgets to declare a dependency. In this case whether the dependency exists or not depends on other project dependencies and is non-deterministic. Have you raised an issue with the library causing this, like semantic-ui-react?

This is fixed in [email protected].

Awesome, thanks for reporting back.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Evan-GK picture Evan-GK  Â·  3Comments

wereHamster picture wereHamster  Â·  3Comments

dualcnhq picture dualcnhq  Â·  3Comments

barcher picture barcher  Â·  3Comments

alleroux picture alleroux  Â·  3Comments