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

Plugin not recognized on version 0.19.0 #1231

Closed
3 tasks done
ghost opened this issue Apr 24, 2019 · 9 comments
Closed
3 tasks done

Plugin not recognized on version 0.19.0 #1231

ghost opened this issue Apr 24, 2019 · 9 comments
Labels

Comments

@ghost
Copy link

ghost commented Apr 24, 2019

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

Info

  • Platform: macOS
  • Vetur version:0.19.0
  • VS Code version:1.33.1

Problem

Suddenly after the plugin update plugins are not recognized on template.

Screenshot 2019-04-24 at 20 55 30

This happens to custom plugin too.

@octref
Copy link
Member

octref commented Apr 24, 2019

Repro case?

@ghost
Copy link
Author

ghost commented Apr 24, 2019

@octref As I said the error came right after the update. Earlier I didn't have any error. But the app complies without any issues. The plugin used in above earlier comment is https://kazupon.github.io/vue-i18n/started.html#javascript. Vetur doesn't recognize the plugin in template now. I have other vue plugins plugins which is not recognized in the template but compiles without any issues.

@ghost
Copy link
Author

ghost commented Apr 24, 2019

Also the template doesn't recognize the custom attribute (hyphen separated) on components. For example <v-container grid-list-md> (grid-list-md) is not recognized but <v-container gridListMd> is recognized.

Screenshot 2019-04-24 at 21 20 21

And this happened after the plugin update.

@bennyty
Copy link

bennyty commented Apr 24, 2019

Screenshot_2019-04-24 16 06 25_5JIEvp
I'm seeing Vetur errors after updating to 0.19.0 as well.

Unrelated: This is doubly annoying because VSCode recently broke installing old versions of extensions. If anyone else needs to downgrade to Vetur@0.18.1 temporarily, consider running VSCode-Insiders.

@colinbes
Copy link

Also seeing similar errors as noted above with 0.19.0
I also get error message stating that due file is not a module File '/.../recipe-manager.client/src/App.vue' is not a module.. Adding lang="html" to template tag seems to have corrected the issue which should not be required.

Failing

<template>
<div>
  <label>{{title}}</label>
    <input-tag v-model="categoryList"></input-tag>
</div>
</template>

Passing

<template lang="html">
<div>
  <label>{{title}}</label>
    <input-tag v-model="categoryList"></input-tag>
</div>
</template>

@octref
Copy link
Member

octref commented Apr 24, 2019

Same root cause as #1226, vue-i18n doesn't have a way to bind more properties to this instance.

Your second issue should be fixed.

@octref
Copy link
Member

octref commented Apr 24, 2019

@colinbes Can you create a new issue and not add to an unrelated issue? If you don't have any <script> region with export default {} that error will be reported.

@colinbes
Copy link

@octref I added it to this issue as I was seeing similar error messages and adding the lang to template remove the error messages. I will create new issue.

@octref
Copy link
Member

octref commented Apr 26, 2019

I'll track it in #1226.

@octref octref closed this as completed Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants