getcandy / hub

GetCandy v1 Hub built on Nuxt.js
30 stars 9 forks source link

ValidationError after fresh install #48

Closed codex-corp closed 3 years ago

codex-corp commented 3 years ago

Describe the bug

I just run yarn dev on windows 10 and WSL2 and it's compiled the project with errors

Node v14.16.0 and Node v15.0.0 Nuxtjs v2.15.4

`ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.

Screenshots

image

image

@alecritson alecritson @glennjacobs

codex-corp commented 3 years ago

@glennjacobs

We stuck here and we cannot find any help or tips to catch the problem.

abdullaadnan commented 3 years ago

me too

abdullaadnan commented 3 years ago

Screenshot from 2021-04-05 20-20-17 error occurs after "npm run dev" command

alecritson commented 3 years ago

Hi @codex-corp

Looks like something has happened on a nuxt release. Can you try and set the nuxt version explicitly to 2.15.3 in the package.json file, reinstall node_modules to see if it fixes the issue for now.

abdullaadnan commented 3 years ago

thank you sir for your valuable information my error Is fixed

drgnlrd commented 3 years ago

Same Issues with me as well... I tried Installing the latest version of nuxt, i.e. 2.15.4, also tried explicitly 2.15.3 but nothing worked... I think the issue might be outdated packages used in the hub-core files... such as css-loader, sass-loader, postcss etc... please look into it... and let me know

alecritson commented 3 years ago

@drgnlrd Was you using npm or yarn? We will be looking at the packages and streamlining everything soon.

codex-corp commented 3 years ago

Same Issues with me as well... I tried Installing the latest version of nuxt, i.e. 2.15.4, also tried explicitly 2.15.3 but nothing worked... I think the issue might be outdated packages used in the hub-core files... such as css-loader, sass-loader, postcss etc... please look into it... and let me know

It does work for me, but when tried to login I got network error.

drgnlrd commented 3 years ago

@drgnlrd Was you using npm or yarn? We will be looking at the packages and streamlining everything soon.

I was using npm, because for some reason yarn doesn't respond on my system, but does that make a difference?

rowanfuchs commented 3 years ago

I wasn't so lucky, after downgrading nuxt, the css doesn't seem to compile either. I used NPM on Windows.

ERROR in ./assets/css/app.scss (./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!./assets/css/app.scss)
Module not found: Error: Can't resolve './@uppy/core/dist/style.css' in 'C:\hub-master\assets\css'
ERROR in ./assets/css/app.scss (./node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!./node_modules/postcss-loader/src??ref--7-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-3!./assets/css/app.scss)
Module not found: Error: Can't resolve './@uppy/drag-drop/dist/style.css' in 'C:\hub-master\assets\css'
ERROR in ./assets/css/tailwind.css (./node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!./node_modules/postcss-loader/src??ref--3-oneOf-1-2!./assets/css/tailwind.css)
Module not found: Error: Can't resolve './tailwindcss/base' in 'C:\hub-master\assets\css'
ERROR in ./assets/css/tailwind.css (./node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!./node_modules/postcss-loader/src??ref--3-oneOf-1-2!./assets/css/tailwind.css)
Module not found: Error: Can't resolve './tailwindcss/components' in 'C:\hub-master\assets\css'
ERROR in ./assets/css/tailwind.css (./node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!./node_modules/postcss-loader/src??ref--3-oneOf-1-2!./assets/css/tailwind.css)
Module not found: Error: Can't resolve './tailwindcss/utilities' in 'C:\hub-master\assets\css'
alecritson commented 3 years ago

We've made some changes to the dependencies of the hub packages. Hopefully this will clear some things up and solve the issues for you.

This also means you should be able to use the latest version of nuxt. Just bring all your @getcandy dependencies to 0.12.9 and then 🤞 it will sort it.

Also try using Yarn over NPM if you're still having an issue.

alecritson commented 3 years ago

the package files for the modules have been simplified. Try using 0.12.11 if you still have issues, feel free to reopen.