Veture 0.19.0 throwing multiple error messages.
See original GitHub issueInfo
- Platform: macOs
- Vetur version: 0.19.0
- VS Code version: 1.33.1
Problem
In code edit, error (red squiggle) on word ‘template’
Seeing multiple error messages stating can’t find xxx, as example:
Cannot find name 'drag'.
Cannot find global type 'BigInt'.
Expected 3 arguments, but got 7.
The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
Have also seen message that my .vue file is not a module.
Changing
<template>
<form v-on:submit.prevent class="toolbar grid5 drag-disabled">
<slot></slot>
</form>
</template>
to
<template lang="html">
<form v-on:submit.prevent class="toolbar grid5 drag-disabled">
<slot></slot>
</form>
</template>
seems to solve the problem, at least not reporting any errors.
Here’s my .vue file
<template lang="html">
<form v-on:submit.prevent class="toolbar grid5 drag-disabled">
<slot></slot>
</form>
</template>
<script>
export default {
}
</script>
<style lang="less" scoped>
form.toolbar.grid5 {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-gap: 0.3em 0.6em;
grid-auto-flow: dense;
align-items: center;
}
form.toolbar {
padding: 5px;
background-color: @soft-black;
border-radius: 4px;
position: absolute;
width: calc(100% - 30px);
bottom: 10px;
}
</style>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:23
- Comments:57 (11 by maintainers)
Top Results From Across the Web
Displaying multiple error messages - Google Groups
I am looking for a way to display multiple error messages at the same time. In the following example both conditional statements could...
Read more >Displaying Errors - VeeValidate
Displaying Multiple error messages. Another use-case is that you might want to display all the errors for an input, typically to allow the...
Read more >Error Messages | Cypress Documentation
To make things less magical and clearer, we are now throwing an error. Cypress detected that you invoked one or more cy commands...
Read more >Elm 0.19.1 releases with improved syntax error messages in ...
Now with the improved Elm compiler, the error message will point out ... run elm make multiple times on the same project at...
Read more >Multiple error messages are thrown when trying to expand the ...
Multiple error messages are thrown when trying to expand the Event list of an Input Actions asset that has an empty Action Map....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
my workaround was to disable this option:
"vetur.experimental.templateInterpolationService": false
so, it must be related to that feature
@kinesias You can either rollback, stop using Vetur, or create a repro case instead of ranting.