Module not found: Error: Can't resolve './AsyncGenerator' in 'node_modules/@babel/runtime/helpers/builtin/es6' #6938
Labels
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
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
The text was updated successfully, but these errors were encountered: