Skip to content

Error when importing components without .vue extension in TypeScript #42

@cretueusebiu

Description

@cretueusebiu

Version

v2.4.3

Reproduction link

https://codesandbox.io/s/zrl1qrlo3p

Steps to reproduce

Go to the CodeSandbox reproduction link and open the terminal window.

What is expected ?

Resolve .vue files without throwing errors in the terminal.

What is actually happening?

It resolves .vue files but still throws an error in the terminal.

ERROR  in ~/pages/index.vue 
Cannot find module '~/components/HelloWorld'.

import HelloWorld from "~/components/HelloWorld";

screenshot_1

This bug report is available on Nuxt community (#c8696)

Metadata

Metadata

Assignees

Labels

transferedIssue transfered from nuxt main repo

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions