Unknown word CssSyntaxError in import inside script tag in vue file
See original GitHub issueClearly describe the bug
CssSyntaxError unknown word in import inside script tag in vue file
Which rule, if any, is the bug related to?
What code is needed to reproduce the bug?
<script>
import {ref, nextTick, onBeforeUnmount, watch, inject} from 'vue';
</script>
What Stylelint configuration is needed to reproduce the bug?
Which version of Stylelint are you using?
e.g. 14.0.0
How are you running stylelint: CLI, PostCSS plugin, Node.js API?
VSCode via stylelint plugin
Does the bug relate to non-standard syntax (e.g. SCSS, Less etc.)?
What did you expect to happen?
“No warnings to be flagged.”
What actually happened (e.g. what warnings or errors did you get)?
CssSyntaxError unknown word in import inside script tag in vue file
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Why is unknown word in vue scss compile? - Stack Overflow
I have vue application using typescript and when I ...
Read more >Use Laravel mix to share sass variables between javascript ...
Here is my package.json file and webpack.mix.js file. ... element-admin\resources\js\components\ErrorLog\index.vue Unknown word 1 | > 2 | import API from "!
Read more >Webpack Build Error: Can't resolve subcomponents within a ...
Coding example for the question Webpack Build Error: Can't resolve subcomponents within a PrimeVue UI component-Vue.js.
Read more >Changelog | Stylelint
Fixed: TS compilation error due to needless file-entry-cache import (#6393) ... Fixed: false negatives for template literals within script tags by updating ...
Read more >Using with Preprocessors - Tailwind CSS
The place you are most likely to run into this situation is in your main CSS file that includes your @tailwind declarations. Won't...
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
Maybe, you may need to configure
customSyntax: "postcss-html"
in your Stylelint config files. (see also the v14 migration guide)If you want to check Vue files, stylelint-config-recommended-vue may help you.
We surface an error already for CLI, e.g.
Gives:
It seems the VS Code extension doesn’t surface the error, though. One for that issue tracker, I think.
No worries.