jsconfig.json affects vscode's prompt for pinia method

19 Views Asked by At

jsconfig.json affects vscode's prompt for pinia method

jsconfig.json file


{
    "compilerOptions": {
        "target": "es2016",
        "allowSyntheticDefaultImports": false,
        "baseUrl": "./",
        "paths": {
            "@/*": [
                "src/*"
            ]
        }
    },
    "exclude": [
        "node_modules",
        "dist"
    ]
}

when this file exist project root path, vscode cannot perform syntax association.

For example, enter mapAction to automatically import for this method.

remode the jsconfig.json file, it's work.

Anyhelp Thinks

0

There are 0 best solutions below