0

I have npm dependencies installed for my ASP.NET Core project,

package.json

enter image description here

I reference them in my .cshtml file like so : enter image description here enter image description here

However, when I run the project, I press F12 and see I have a bunch of js errors: enter image description here

Why is this happening? all the files are in the right paths and it fails to load them.

Edit: here's my external web tools (VS2019) enter image description here

RyM
  • 111
  • 1
  • 1
  • 10

1 Answers1

1

Your javascripts file may not be under your wwwroot, you may need to modify the path.

You can see this thread to see how to set the path in your startup.

Yinqiu
  • 6,024
  • 1
  • 3
  • 14