We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File Not Found. vue file can't find the file ts file references by script src attribute.
tsconfig.json
{ "compilerOptions": { "sourceMap": true, "strict": true, "module": "esnext", "moduleResolution": "node", "target": "es5", "allowSyntheticDefaultImports": true, "isolatedModules": false, "experimentalDecorators": true, "emitDecoratorMetadata": true, "noImplicitAny": false, "noImplicitReturns": false, "importHelpers": true, "listFiles": true, "removeComments": true, "noImplicitThis": true, "suppressImplicitAnyIndexErrors": true, "strictPropertyInitialization": false, "allowJs": true, "checkJs": true, "lib": ["dom", "esnext", "dom.iterable", "scripthost"], "pretty": true, "types": ["node"], "typeRoots": ["node_modules/@types"], "plugins": [ { "name": "typescript-tslint-plugin" } ], "baseUrl": ".", "paths": { "./*": [ "src/*" ], "@/*": [ "src/*" ] } }, "include": ["src/**/*.ts", "src/**/*.vue"], "exclude": ["node_modules"] }
modify vls.js file line 189 from:
const docUri = vscode_uri_1.default.parse(doc.uri); return docUri .with({ path: path.resolve(docUri.path, ref) }) .toString();
to:
const docUri = vscode_uri_1.default.parse(doc.uri); const lastPosition = docUri.path.toString().lastIndexOf("/"); const rawPath = docUri.path.slice(1, lastPosition); return docUri .with({ path: path.resolve(rawPath, ref) }) .toString();
can reslove this problem.
The text was updated successfully, but these errors were encountered:
e7ec78e
No branches or pull requests
Info
Problem
File Not Found.
vue file can't find the file ts file references by script src attribute.
tsconfig.json
fix code
modify vls.js file line 189 from:
to:
can reslove this problem.
The text was updated successfully, but these errors were encountered: