Skip to content

import *.vue file without .vue will not work #178

Closed
@duanxianze

Description

Describe the bug

For example
A file named tsc.vue,
import tsc from "./tsc.vue";
It's ok,but
import tsc from "./tsc";
not work,report
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

Reproduction

System Info

  • required vite version:0.12.0
  • required Operating System:mac os 10.15.4
  • required Node version:v12.5.0

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions