Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found: Error: Can't resolve './AsyncGenerator' in 'node_modules/@babel/runtime/helpers/builtin/es6' #6938

Closed
bjonnh opened this issue Nov 30, 2017 · 2 comments · Fixed by #6946
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@bjonnh
Copy link

bjonnh commented Nov 30, 2017

Choose one: is this a bug report

Trying to use: https://github.com/apache/incubator-annotator
(just run yarn start)

I got an error saying that AsyncGenerator.js didn't exist.

Input Code

N/A

Babel/Babylon Configuration (.babelrc, package.json, cli command)

https://github.com/apache/incubator-annotator/blob/master/.babelrc.js

Expected Behavior

No error when babel runs.

Current Behavior

ERROR in ./node_modules/@babel/runtime/helpers/builtin/es6/wrapAsyncGenerator.js
Module not found: Error: Can't resolve './AsyncGenerator' in '/tmp/incubator-annotator/node_modules/@babel/runtime/helpers/builtin/es6'
@ ./node_modules/@babel/runtime/helpers/builtin/es6/wrapAsyncGenerator.js 1:0-46
@ ./demo/search.js
@ ./demo/index.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./demo/index.js
webpack: Failed to compile.

Possible Solution

I had to edit node_modules/@babel/runtime/helpers/builtin/es6/wrapAsyncGenerator.js
and change the AsyncGenerator.js include to asyncGenerator.js

but it seems that this file is generated from the babel source. No idea how to fix that at that level.

Context

This probably works on windows machines that don't care about case, as other devs using windows weren't able to reproduce the bug. I was able to reproduce it under a fresh debian install (in docker).

Your Environment

software version(s)
Babel babel/core@^7.0.0-beta.32
node 9.2.0-1
npm 5.5.1-2
Operating System Archlinux, latest updates as of today.
@babel-bot
Copy link
Collaborator

Hey @bjonnh! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.

@Jessidhia
Copy link
Member

Speculation for the likely cause: at some point, the casing of the helper was changed, but the publishing was done on a case-insensitive/case-preserving filesystem that did not correctly update the casing of the file.

@hzoo hzoo closed this as completed in #6946 Dec 1, 2017
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 3, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants