3

VS Code cannot find the module below, but it can be used in my project:

VSCode screenshot

However, it can be found in WebStorm:

WebStorm screenshot

This is my tsconfig:

tsconfig

3
  • What does your tsconig.json look like ? Commented Dec 5, 2018 at 10:35
  • my question has updated, show my tsconfig.json Commented Dec 6, 2018 at 1:47
  • i have found the problem , it's vetur's bug Commented Dec 6, 2018 at 3:17

1 Answer 1

2

it's vetur's bug, it will validat the script in .vue, and it will error if the script's lang is ts

Sign up to request clarification or add additional context in comments.

1 Comment

What a life saver. I've been staring at <script setup> and not able to figure out why the template wasn't showing any errors when I used the wrong variable name. <script setup lang="ts"> fixed it.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.