question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If working in Visual Studio 2017

See original GitHub issue

Just to mention, that will need to set mimeType for “.vue” extension file to use httpvueloader

May need to do it in Project “ApplicationHost” config file or in IIS Express “ApplicationHost” config file.

Project: C:\Users<your name>\Documents\Visual Studio 2017\Projects<project name>.vs\config

IIS Express: C:\Users<your name>\Documents\IISExpress\config

<mimeMap fileExtension=".vue" mimeType="application/javascript" />

Otherwise, keeps throwing file not found when referencing url file <blah>.vue.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:9

github_iconTop GitHub Comments

2reactions
richsoftcommented, Nov 26, 2019

I know this is an old issue, but another way to set this up in an ASP.NET app, is to add the following to the web.config:

  <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".vue" mimeType="application/javascript"/>
    </staticContent>
  </system.webServer>
1reaction
BinarySpikecommented, Mar 14, 2019

In MVC Core projects you can use something like this in your Startup.cs Configure:

app.UseStaticFiles(new StaticFileOptions
{
    ContentTypeProvider = new FileExtensionContentTypeProvider(
        new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) {
            { ".vue", "application/javascript" }
        }),
});

I feel that’s more maintainable than in the ApplicationHost.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio 2017 Builds the code but runs a previous version.
Open Visual Studio to you project then in Solution Explorer right click, select configuration manager and verify the build is checked on the ......
Read more >
Getting Started with Visual Studio 2017 – Building your first app
Get started with Visual Studio by creating your first C# app and running it.Download Visual Studio for free at ...
Read more >
Visual Studio Community 2017 Debugger not working correctly
When I set a breakpoint on my Windows Form applicaton, when running the program it does not stop at the breakpoint. I am...
Read more >
asp.net - Visual Studio 2017 error: Unable to start program, An ...
I had multiple instances of Chrome open. I only closed the one that I was using to debug. I did not restart VS2017....
Read more >
Introduction to Visual Studio - GeeksforGeeks
Getting Started with Visual Studio 2017 · First, you have to download and install the Visual Studio. · You can see a number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found