Open M-Barari opened 3 years ago
faced the same problem in production. only occurs when using some components like v-tabs or v-select or v-autocomplete. others work fine.
@samanar , Mine was working just fine !!! when re-installed packages , BOOM!!
any idea?
tried "sass": "^1.32.10", "sass-loader": "^11.0.1"
and achieved a new error!
ERROR Failed to compile with 1 errors friendly-errors 19:10:29
ERROR in ./assets/scss/vuetify.scss friendly-errors 19:10:29
Module build failed (from ./node_modules/sass-loader/dist/cjs.js): friendly-errors 19:10:29
TypeError: this.getOptions is not a function
at Object.loader (C:\CODES\shopppro\node_modules\sass-loader\dist\index.js:25:24)
friendly-errors 19:10:29
@ ./assets/scss/vuetify.scss 4:14-227 15:3-20:5 16:22-235
@ ./.nuxt/App.js
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
Just created a fresh create-nuxt-app (with Vuetify) and everything is fine. npm run dev and npm run build - no errors.
Same issue as @M-Barari with the exact same versions of Nuxt and nuxtjs/vuetify.
I noted that commenting the position: relative
line solves the issue and allows me to finish the build correctly. Of course it is not viable
got same issue. SassError: Expected identifier. ╷ 70 │ position: relative │ ^
create a blank new nuxt app and call v-tabs in one of the pages. this error only occurs with some of the components. i tried downgrading various packages but no luck so far
Hi everyone, same issue for me -
I am hosting production website on Netlify -
npm run dev works fine on Local dev
npm run generate did not work but now is working on Local dev - I have no idea why exactly.
Maybe because I added the following in my nuxt.config.js
// Build Configuration: https://go.nuxtjs.dev/config-build build: { loaders: { sass: { sassOptions: { indentedSyntax: true } } } }
npm run generate on Netlify generates SassError as mentioned by @M-Barari
The error is directly connected to the Vuetify components one is using in his Layout.
For me this is V-Tabs ( V-Window), but there are surely others that are involved.
Duplicate issue with #438
vuetify: { customVariables: ['~/assets/variables.scss'], treeShake: false,
Changing treeShake to false did the trick for me as well
Last night i finally found the culprit in my project by installing a fresh nuxt with vuetify and adding my packages and other files one by one! the only thing that i didn't change was vuetify config in nuxt.config.js
. so removed treeShake
and every thing worked just fine.
Well , looks like it only solved the problem in dev ; by build i still got the error. so tried treeShake: false
and problem solved in build
too.
The issue is dart-sass, see https://github.com/sass/dart-sass/issues/1287
In package.json add this to devDependendies: "sass": "1.32.8"
treeShake: false worked for me too. thanks . save my time.
nuxt.config.js
vuetify: {
customVariables: ['~/assets/variables.scss'],
treeShake: false
}
Nothing is working for me... If i downgrade sass and sass loader now i have this... I am using owl preset and using a new nuxt app
Module version Nuxt 2.15.4 Nuxt/Vuetify 1.11.3
Describe the bug every thing was fine and suddenly got these errors when deleted
node_modules
andpackage-lock.json
and then usednpm i
and tried run the project vianpm run dev
ornpm run build
.Screenshots
Additional context this is my package.json file
and my nuxt.config