Skip to content
New issue

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

Component data always require tags and attributes paths #2278

Open
3 tasks done
Kolobok12309 opened this issue Sep 15, 2020 · 0 comments
Open
3 tasks done

Component data always require tags and attributes paths #2278

Kolobok12309 opened this issue Sep 15, 2020 · 0 comments

Comments

@Kolobok12309
Copy link

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

Vscode version: 1.49.0 (user setup)
Дата: 2020-09-10T13:22:08.892Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
ОС: Windows_NT x64 10.0.18363
Vetur 0.27.3

Problem

I try use Component data from doc, i do not need attributes in package.json and i not set this property, all my tries don't working.
I read code and found this string, link

if (tagsPath && attrsPath) {
    const tagsJson = JSON.parse(fs.readFileSync(tagsPath, 'utf-8'));
    const attrsJson = JSON.parse(fs.readFileSync(attrsPath, 'utf-8'));
    return getExternalTagProvider(depPkgJson.name, tagsJson, attrsJson);
}
return null;

After setting package.json vetur.attributes with empty json file, my tags start working, it's not obvious)
Can you do attributes and tags optional pls)

Reproducible Case

Set in package.json only one prop of vetur.tags or vetur.attributes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants