You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.
Like #757 , I've been experiencing the same error. I'm using Vue.js + ASP.NET Core. Without ASP.NET Core, HMR works just fine. However, when I implement ASP.NET Core using this Microsoft.AspNetCore.SpaServices package, it shows the error.
Here's my screenshot (never mind the last two GET method errors, by the way):
You can reproduce the same error using these code samples:
When you run the second sample code, only using VueJs, the HMR works just fine, while the first one, using VueJs on ASP.NET Core, it shows the error like the screenshot above.
The text was updated successfully, but these errors were encountered:
If you want to use the UseWebpackDevMiddleware helper with HotModuleReplacement, then don't put anything about HMR in your Webpack config, because the helper code adds that dynamically. For example, don't put webpack.HotModuleReplacementPlugin() in your config. There may be other issues breaking things in your example too, but I'm not sure what because there's a lot of code there.
Or, for a simple working example, please see the projects generated by dotnet new vue:
Run dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
In an empty directory, run dotnet new vue
Run dotnet restore, npm install. Also run set ASPNETCORE_ENVIRONMENT=Development (on Windows) or export ASPNETCORE_ENVIRONMENT=Development (on macOS/Linux)
Finally, run dotnet run to start the app
Alternatively, if you have Visual Studio on Windows, you can skip steps 3 and 4 - just open the generated project in VS and run it.
Hi, Team.
Like #757 , I've been experiencing the same error. I'm using Vue.js + ASP.NET Core. Without ASP.NET Core, HMR works just fine. However, when I implement ASP.NET Core using this
Microsoft.AspNetCore.SpaServices
package, it shows the error.Here's my screenshot (never mind the last two
GET
method errors, by the way):You can reproduce the same error using these code samples:
When you run the second sample code, only using VueJs, the HMR works just fine, while the first one, using VueJs on ASP.NET Core, it shows the error like the screenshot above.
The text was updated successfully, but these errors were encountered: