aurelia / aurelia/dotnet

Cannot find module '@babel/polyfill'

Open
#6 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
33
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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 that

>Cannot find module '@babel/polyfill'

The 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 following

![image](https://user-images.githubusercontent.com/9284228/59712218-caa1a500-91da-11e9-831b-edcbdd68f2dc.png)

I tried `npm install babel-polyfill` but that didn't fix anything.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the generated Aurelia project from the dotnet template, run npm install, and inspect the webpack build of main.ts where @babel/polyfill cannot be found. Check the generated package dependencies and build configuration; done means a fresh template project builds successfully without the missing-module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, javascript, typescript, webpack
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.