Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

ts lint error when run 'npm run build' #67

Open
@jellykaiser

Description

I just init my project: npm init vite-app myApp --template vue-ts. Then run npm run build.
But i got this error:

.\src\main.ts
=============
=> .\src\main.ts:2:17
Error :: Cannot find module './App.vue' or its corresponding type declarations. (code 2307)
  1 | import { createApp } from 'vue'
  2 | import App from './App.vue'
    |                 ^^^^^^^^^^^
  3 | import './index.css'
  4 |

It just a new project. How to fix this error?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions