ASP.Net Core Angular2 template plus Auth0 not working
<p>I am trying to build an Angular2 webfrontend with Auth0 support in VS2015. I used the template mentioned in this article <a href="http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/" rel="nofollow">http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/</a> and tried to follow the Auth0 guide for Angular2 at <a href="https://auth0.com/docs/quickstart/spa/angular2" rel="nofollow">https://auth0.com/docs/quickstart/spa/angular2</a> but i ended up with something that wont start. It worked before i added Auth0 and i think it has to do with how i added Auth0 but i can't work it out. I will paste my current error message below but really trying to find the steps needed to add Auth0 to this common dotnet VS2015 template. I am using this particular template as it is the main one that seems to get all the main features like hot code changes working in visual studio.</p>

<pre><code>Exception: Call to Node module failed with error: ReferenceError: Auth0Lock is not defined
at new Auth (C:\Code\videofilenameinfo\VideoFileInfo\NameParserWebsite\ClientApp\dist\main-server.js:230:26)
at AppView._View_AppComponent_Host0.createInternal (AppComponent_Host.ngfactory.js:15:20)
at AppView.create (C:\Code\videofilenameinfo\VideoFileInfo\NameParserWebsite\node_modules\@angular\core\bundles\core.umd.js:9419:25)
at ComponentFactory.create (C:\Code\videofilenameinfo\VideoFileInfo\NameParserWebsite\node_modules\@angular\core\bundles\core.umd.js:6029:40)
at ApplicationRef_.bootstrap (C:\Code\videofilenameinfo\VideoFileInfo\NameParserWebsite\node_modules\@angular\core\bundles\core.umd.js:7051:44)
at C:\Code\videofilenameinfo\VideoFileInfo\NameParserWebsite\node_modules\@angular\core\bundles\core.umd.js:6960:93
at Array.forEach (native)
at PlatformRef_._moduleDoBootstrap (C:\Code\videofilenameinfo\VideoFileInfo\NameParserWebsite\node_modules\@angular\core\bundles\core.umd.js:6960:46)
at C:\Code\videofilenameinfo\VideoFileInfo\NameParserWebsite\node_modules\@angular\core\bundles\core.umd.js:6928:31
at ZoneDelegate.invoke (C:\Code\videofilenameinfo\VideoFileInfo\NameParserWebsite\node_modules\zone.js\dist\zone-node.js:232:26)
</code></pre>