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

Custom block triggers no-multiple-template-root #1428

Closed
2 tasks done
jods4 opened this issue Jan 31, 2021 · 2 comments
Closed
2 tasks done

Custom block triggers no-multiple-template-root #1428

jods4 opened this issue Jan 31, 2021 · 2 comments

Comments

@jods4
Copy link

jods4 commented Jan 31, 2021

Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have read the FAQ and my problem is not listed.

Tell us about your environment

  • ESLint version: not sure, version bundled w/ Vetur?
  • eslint-plugin-vue version: same
  • Node version: 15.3.0
  • Operating System: Win 10

Please show your full configuration:
No config.

What did you do?
I'm trying to use a custom block in SFC.

I did register it in Vetur customBlocks, compiled the grammar and restarted, which now highlights properly.

<route>
{ title:  "abc" }                             
</route>

<template>
Page A
</template>

<script>
export default {
  setup() {}
}
</script>

What did you expect to happen?
No eslint error

What actually happened?
eslint-plugin-vue reports vue/no-multiple-template-root, see screenshot:
image

@ota-meshi
Copy link
Member

Thank you for this issue.
I can't reproduce the problem. Do you get the same error from ESLint or vscode-eslint? If not, it may be a Vetur specific issue.

@ota-meshi
Copy link
Member

If you have the same problem with the CLI, reopen it.

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