-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Cannot find module '@babel/polyfill' #6
Comments
Interesting. I'm investigating a similar error I found, so I'm including my findings here in case it helps resolve both our issues. Steps:
The bundle tries to build, but I end up with a ton of errors similar to your "module not found: error: can't resolve...." error.
For the record, I have not tried the |
I ended up creating aurelia/cli#1134 to track my issue. |
@roddharris Have you solve the problem? I have exact same issue. |
Unfortunately, I did not. I wound up using the Aurelia CLI to generate my code instead as found here. |
I solve it by referencing @babel/polyfill and change in main.js to |
I just remembered one thing I did -- at least in one project. I removed the use of @babel/polyfill. (somewhere I read that that is not supposed to be used with aurelia anymore.) So, I |
I installed the latest version of the templates:
dotnet new -i aurelia.dotnet.templates
I then created a new folder and within the folder did the following
dotnet new aurelia
Once that was completed, I then did an
npm install
to ensure all my packages were loaded. I then ran the project (which should be a very basic Hello World) and I get an error stating thatThe error occurs during the webpack build of
main.ts
.What do I need to do to get this working? I kind of figured the initial template would just work out of the box.
I also tried:
au build
and got the followingI tried
npm install babel-polyfill
but that didn't fix anything.The text was updated successfully, but these errors were encountered: