antoniandre / wave-ui

A UI framework for Vue.js 3 (and 2) with only the bright side. ☀️
https://antoniandre.github.io/wave-ui
MIT License
549 stars 40 forks source link

Vue 3 Customisation via SCSS #23

Closed BrianBut closed 3 years ago

BrianBut commented 3 years ago

Following your instructions for customisation I immediately ran into this error! HELP! It does not help that the cited webpack site is currently unreadable.

ERROR Failed to compile with 1 error 06:22:14 error in ./node_modules/wave-ui/src/wave-ui/index.js

Module parse failed: Unexpected token (14:18) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | | export default class WaveUI {

static instance = null static registered = false

@ ./src/main.js 8:0-41 14:4-10 @ multi (webpack)-dev-server/client?http://192.168.1.80:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

antoniandre commented 3 years ago

Hi @BrianBut, The error you are facing comes from not transpiling the JavaScript, and this syntax is new Javascript features.

You may have missed a part in the documentation: https://antoniandre.github.io/wave-ui/customization I also added some more information in this documentation page to make it clearer.

Make sure to install the dev dependencies as explained, with sass-loader@10 not 11. Hope it helps.

antoniandre commented 3 years ago

Closing the issue now. Please reopen if not solved.