invictus-codes / nuxt-vuetify

Add Vuetify 3 to your Nuxt application in seconds.
MIT License
73 stars 9 forks source link

nuxt vuetify module error #15

Open kingdomac opened 1 year ago

kingdomac commented 1 year ago

Contact Details

mac.cheaib@gmail.com

What happened?

After running npm install --save-dev @invictus.codes/nuxt-vuetify

and adding @invictus.codes/nuxt-vuetify to the modules section of nuxt.config.ts as in the documentation i got this error when running:

npm run dev

Version

1.0.2 (Default)

What browsers are you seeing the problem on?

No response

Relevant log output

ERROR  Cannot restart nuxt:  string is not defined

  at C:/projects/nuxt/nuxt-app/nuxt.config.ts:17:65
  at Object.jiti (node_modules\jiti\dist\jiti.js:1:245784)
  at resolveConfig (/C:/projects/nuxt/nuxt-app/node_modules/c12/dist/index.mjs:279:24)
  at loadConfig (/C:/projects/nuxt/nuxt-app/node_modules/c12/dist/index.mjs:116:40)
  at async loadNuxtConfig (/C:/projects/nuxt/nuxt-app/node_modules/@nuxt/kit/dist/index.mjs:480:18)
  at async loadNuxt (/C:/projects/nuxt/nuxt-app/node_modules/nuxt/dist/index.mjs:2939:19)
  at async loadNuxt (/C:/projects/nuxt/nuxt-app/node_modules/@nuxt/kit/dist/index.mjs:534:19)
  at async load (/C:/projects/nuxt/nuxt-app/node_modules/nuxi/dist/chunks/dev.mjs:182:23)
  at async _applyPromised (/C:/projects/nuxt/nuxt-app/node_modules/nuxi/dist/chunks/dev.mjs:96:10)

Additional context

No response

ascorbic-acid commented 1 year ago

you must select one option, for example

change: styles: true | 'none' | 'expose' | 'sass' | { configFile: string }, to one of the options for example: styles: true,

jvhellemondt commented 11 months ago

Could you provide a codepen/ codesandbox with your setup? So we can check your settings?

thomassittig commented 10 months ago

fyi: i ran in the same situation. i would recommend to update the documentation to be a bit more clear. providing a invalid configuration as an copy/paste example is misleading in my opinion.

As the options are described directly after the example, the sample does not really need them.