A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://vuejs.github.io/vetur/guide/setup.html below:

Website Navigation


Setup | Vetur

# Setup # Extensions # VS Code Config # Project Setup # jsconfig.json vs. tsconfig.json # Path mapping

If you are using Webpack's alias (opens new window) or TypeScript's path mapping (opens new window) to resolve components, you need to update Vetur's tsconfig.json or jsconfig.json.

For example:

jsconfig.json:

index.vue

# Typescript

You need to add a shim type file to import a Vue SFC in a TypeScript file.

# Vue2 # Vue3 # Advanced

If you use a monorepo, VTI or package.json and tsconfig.json/jsconfig.json does not exist at project root, you can use vetur.config.js for advanced settings.

Please add vetur.config.js at project root or monorepo project root.

# Yarn PnP

Vetur supports this feature now, but it has some limits.

If you're using the editor SDKs (Yarn Editor SDKs (opens new window)) with typescript and you want to use the typescript server wrapper created by yarn you'll need to set the typescript.tsdk to the directory of the editor sdk's tsserver:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4