question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use sass module in vue3 by it: Property '' does not exist on type '{}'.

See original GitHub issue

import var scss in vs.config.js //vue.config.js

module.exports = {
  css: {
    requireModuleExtension: true,
    loaderOptions: {
      scss: {
        prependData: `
                      @import "@/style/gobal.scss";
                  `,
      },
    },
  },
}

image image if delete the var, it’s working fine.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Dodjecommented, Oct 8, 2021

@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…

0reactions
mrmckebcommented, May 11, 2022

I just noticed that the original post had a typo which may have been the cause @import "@/style/gobal.scss"; - where gobal should be global.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found