Use sass module in vue3 by it: Property '' does not exist on type '{}'.
See original GitHub issueimport var scss in vs.config.js //vue.config.js
module.exports = {
css: {
requireModuleExtension: true,
loaderOptions: {
scss: {
prependData: `
@import "@/style/gobal.scss";
`,
},
},
},
}
if delete the var, it’s working fine.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
typescript - Vue js 3 - Property 'projects' does not exist on type ...
First I had some problem with node modules, after uninstalling global, local and reinstalling packages, I noticed that blank projects (created ...
Read more >sass-loader - npm
This allows you to control the versions of all your dependencies, and to choose which Sass implementation to use. Note. We highly recommend ......
Read more >Setup | Vetur - GitHub Pages
If you use a monorepo, VTI or package.json and tsconfig.json/jsconfig.json does not exist at project root, you can use vetur.config.js for advanced settings....
Read more >Vue Cli 3 Typescript. Cannot import css/sass to the <script ...
Try adding a new file called vue.config.js in your project root directory. In the file, add the following contents: const path = require('path'); ......
Read more >Features | Vite
Vite only performs transpilation on .ts files and does NOT perform type checking. ... use the official @vitejs/plugin-vue-jsx plugin, which provides Vue 3...
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 Free
Top 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

@mrmckeb Didn’t want to create an issue, I hope it’s okay if I ask it here whether it is possible to make it work with typescript vue files?
I’ve found a message about module not working with files except js/ts
It work fine with .tsx files for me, but I need it working with vue…
I just noticed that the original post had a typo which may have been the cause
@import "@/style/gobal.scss";- wheregobalshould beglobal.