'How to setup Three.js for asp.net MVC project

I am having the hardest time getting something up and running with three.js just to load a simple blender file. I tried following the installation guide and installed using NPM. I have the following so far in my home index view.

<script type="module">
   // Option 1: Import the entire three.js core library.
   import * as THREE from '/node_modules/three';
   const scene = new THREE.Scene();
</script>

I included the files in my project that were installed with NPM:

enter image description here

When I load the page however I keep getting a 403 error. Any guidance would be greatly appreciated. I can't seem to find examples of implementing with Visual Studio / .Net. I typically use Nuget and don't have much experience with NPM so perhaps I just did something incorrectly?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source