-
Notifications
You must be signed in to change notification settings - Fork 519
Uncaught ReferenceError: vendor_ is not defined #717
Comments
No, nothing yet. Haven't heard anything and I can't seem to figure it out myself...
…On Tue, Feb 28, 2017 at 7:31 AM, paddyza ***@***.***> wrote:
I have the same issue. Pulling my hair out. Were you able to find a
solution?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#717 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHUu6PZxPLQ-EbSs-NMXlWCsWmtoHbB4ks5rhCGpgaJpZM4MMhhF>
.
|
I ran into an issue with the same symptoms today (same exact console errors), and it turned out to be because I was missing the Microsoft.AspNetCore.StaticFiles middleware. Once I added the nuget package and app.UseStaticFiles(); in my Startup.cs the problem went away. Not sure if you have the same root cause, but it might give you an idea. |
Please rebuild the project and refresh the browser. The error should go away. |
I'm able to reproduce this, same version, same error, when using the yeoman template.
Steps to reproduce
|
Have you added 'aspnet-prerendering' in webpack.config.vendor.js? I am using @angular 2.4.8 and webpack 2.2.1 and I got the similar error as yours. |
@ttcg I didn't add anything to the
|
For anyone else reading, make sure you've regenerated your vendor and other files via the command line as follows:
(if needed, run @IEvangelist I know you said you did run the If you have more info that will reproduce this issue on a clean machine, please let us know. Otherwise I'm not sure how we can take any action on it. |
@SteveSandersonMS as always, thank you for your time sir! It is much appreciated. I can no longer reproduce this issue either, and my original source (without change) seems to be working. I'm writing this off as being related to |
Issue
I'm not really sure why this is no longer working. It was originally entirely functional as I expected it to be. Today I went to run the application and then this started happening.
Version 15.0.26206.0 D15REL
Microsoft .NET Framework
Version 4.6.01586
Last week while running the same code base, this all worked. Please let me know what else might be helpful in trying to fix this. Also, I did manually try executing the
webpack --config webpack.config.vendor.js
command to no avail.Steps to Reproduce
Open in Visual Studio, build and run. Open developer tools and look @ the console.
The text was updated successfully, but these errors were encountered: