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.

[Bug Report][3.0.0-beta.0] Sass error caused by `VList.sass` and `VListItem.sass` both forwarding the same variables

See original GitHub issue

Environment

Vuetify Version: 3.0.0-alpha.11 Vue Version: 3.2.21 Browsers: Chrome 95.0.4638.69 OS: Windows 10

Steps to reproduce

Follow the README.

IMPORTANT: This is alpha.11 – if you switch to 3.0.0-next-20211105.0, for example, this error goes away, but the .cache/vuetify/styles.scss file appears to include far too many of the Sass files (maybe all of them?) – is that another issue, or did I do something wrong?

Expected Behavior

No errors, able to customise v-tooltip and other components’ Sass variables.

Actual Behavior

SassError: This module was already loaded, so it can't be configured using "with".

Reproduction Link

https://github.com/glen-84/vuetify-loader-issue

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
KaelWDcommented, Jun 11, 2022

The weird thing is it’s kinda inconsistent. Tabs forward their variables file twice as well but both tabs and lists work fine until I modify variables from both of them.

works:

<v-tabs><v-tab>Tab</v-tab></v-tabs>
<v-list><v-list-item>List</v-list-item></v-list>

works:

<v-tabs><v-tab>Tab</v-tab></v-tabs>
<v-list><v-list-item>List</v-list-item></v-list>

$tabs-height: 56px

works:

<v-tabs><v-tab>Tab</v-tab></v-tabs>
<v-list><v-list-item>List</v-list-item></v-list>

$list-indent-size: 12px

error:

<v-tabs><v-tab>Tab</v-tab></v-tabs>
<v-list><v-list-item>List</v-list-item></v-list>

$tabs-height: 56px,
$list-indent-size: 12px,
1reaction
glen-84commented, Nov 23, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue 3 and Vuetify 3 access SCSS/SASS Varriables in ...
Unfortunately, I get an error "SassError: Undefined variable.". What do I have to import to use the global variables of Vuetify? vue.js ·...
Read more >
SASS variables
Vuetify loads precompiled CSS by default, enabling variable customisation will switch to the base SASS files instead which must be recompiled with your...
Read more >
sasserror: expected whitespace. - You.com | The AI Search ...
sass -loader throws following error when @import 'ed Sass file contain @forward statement with _index file. (See reproducible steps below). Module build failed ......
Read more >
SASS variables — Vuetify.js
Utilizing the sass/scss data option of your vue.config.js file, you can optionally pass in custom variables to overwrite the global defaults. A list...
Read more >
Sass NPM
Dart Sass also supports an older JavaScript API that's fully compatible with Node Sass (with a few exceptions listed below), with support for...
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