Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Yarn and Next.js 12.0.7 #6

Closed
kkomelin opened this issue Dec 8, 2021 · 6 comments
Closed

Doesn't work with Yarn and Next.js 12.0.7 #6

kkomelin opened this issue Dec 8, 2021 · 6 comments

Comments

@kkomelin
Copy link

kkomelin commented Dec 8, 2021

After cloning the project, I ran:

yarn
yarn dev

When loaded the app page in Chrome, the console output:

error - ./node_modules/next/dist/compiled/css-loader/cjs.js??ruleSet[1].rules[2].oneOf[6].use[1]!./node_modules/next/dist/compiled/postcss-loader/cjs.js??ruleSet[1].rules[2].oneOf[6].use[2]!./src/styles/main.css
TypeError: Cannot read property 'theme' of undefined
@kkomelin
Copy link
Author

kkomelin commented Dec 8, 2021

It's a duplicate actually #5

Please add the information about incompatibility with Yarn into the README file.

@ixartz
Copy link
Owner

ixartz commented Dec 8, 2021

Hi @kkomelin,

Yes, please use npm instead for the current time being.

@kkomelin kkomelin changed the title Doesn't work with Yarn Doesn't work with Yarn and Next.js 12.0.7 Dec 8, 2021
@kkomelin
Copy link
Author

kkomelin commented Dec 8, 2021

Hi @ixartz,
Thanks for your reply.

I've just upgraded Next to 12.0.7 and started receiving the same error message as with Yarn.
Any ideas on how to fix it?

@ixartz
Copy link
Owner

ixartz commented Dec 8, 2021

Hi @kkomelin,

I think there is some incompatible dependency when your update package json to the latest version.

@ixartz
Copy link
Owner

ixartz commented Dec 8, 2021

For the time being, you might need to keep the package-lock. If I'm not wrong if they're not some much new feature in SSG mode.

I'm planning to totally rewrite this project and add several new features. It was my first open source project and I made some mistakes.

If you need the latest version Next JS 12, I have another project:
https://github.com/ixartz/Next-js-Boilerplate
And add the blog feature from this project.

@kkomelin
Copy link
Author

kkomelin commented Dec 9, 2021

Thanks @ixartz

@ixartz ixartz closed this as completed Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants