NickHurst / nuxt-quasar

Nuxt module for the Quasar Framework
38 stars 6 forks source link

Cannot resolve "@quasar/extras/animate/fadeIn.css" from "/home/r2d2mynuxt/quasar/extras/animate/fadeIn.css" #5

Open educob opened 4 years ago

educob commented 4 years ago

Hi.

After installing Quasar in my nuxt v2.9.1 project with: npm install --save nuxt-quasar

and modifying nuxt.conf.js according to the doc, I try to start the project again with: npm run dev

And I get this error: ERROR Could not compile template /home/r2d2/mynuxt/node_modules/@nuxt/vue-app/template/App.js: Cannot resolve "@quasar/extras/animate/fadeIn.css" from "/home/r2d2/mynuxt/quasar/extras/animate/fadeIn.css"

Quasar has been installed in "/home/r2d2/mynuxt/node_modules" directory not in "/home/r2d2/mynuxt/"

fadeIn.css is nowhere to be found.

If I remove the animations line from nuxt.conf.js I get: ERROR Could not compile template /home/r2d2/mynuxt/node_modules/@nuxt/vue-app/template/App.js: Cannot resolve "@quasar/extras/fontawesome-v5/fontawesome-v5.css" from "/home/r2d2/mynuxt/quasar/extras/fontawesome-v5/fontawesome-v5.css"

If I remove the "extras" line I get: ERROR Could not compile template /home/r2d2/mynuxt/node_modules/@nuxt/vue-app/template/App.js: Cannot resolve "~/assets/quasar.variables.styl" from "/home/r2d2/mynuxt/assets/quasar.variables.styl"

Thanks.

educob commented 4 years ago

As I couldn't make this plugin work I finally got rid of nuxt/vuetify for good. Good thing I reported this error cause now I know it has taken 8 days to adapt my web to quasar (even though I get plenty of graphql errors and when I refresh the browser, everything goes back in time to the last log-in).

Vuetify has been a pain all the time. Terrible library good for nothing.

BenceSzalai commented 4 years ago

ERROR Could not compile template /home/r2d2/mynuxt/node_modules/@nuxt/vue-app/template/App.js: Cannot resolve "@quasar/extras/animate/fadeIn.css" from "/home/r2d2/mynuxt/quasar/extras/animate/fadeIn.css"

You need to install @quasar/extras by npm.

ERROR Could not compile template /home/r2d2/mynuxt/node_modules/@nuxt/vue-app/template/App.js: Cannot resolve "~/assets/quasar.variables.styl" from "/home/r2d2/mynuxt/assets/quasar.variables.styl"

Apparently having assets/quasar.variables.styl is mandatory. You can create an empty file even, but it must exist.

Also you need to make sure to have these npm packages installed to successfully build:

(The later two are dev dependencies, but npm normally will not install them...)