Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

TypeError: Cannot set properties of undefined (setting 'parent') #1066

Open
josephgodwinkimani opened this issue Nov 5, 2022 · 5 comments
Open

Comments

@josephgodwinkimani
Copy link

josephgodwinkimani commented Nov 5, 2022

Describe the bug

On the browser:

./components/organisms/Header/Header.module.css
TypeError: Cannot set properties of undefined (setting 'parent')

On the console:

error - ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[3].oneOf[4].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[3].oneOf[4].use[2]!./components/organisms/Header/Header.module.css
TypeError: Cannot set properties of undefined (setting 'parent')

To Reproduce
Steps to reproduce the behavior:

For a fresh installation with a running backend aka WordPress website

  1. Start development server
  2. See error as mentioned above

Screenshots

screenshot-localhost_3000-2022 11 05-16_43_01

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Chromium
  • Version: 105
@bmarshall511
Copy link

Getting this same error as well, fresh install of everything.

@mrEckendonk
Copy link

Had the same issue, and resolved it #1009 (comment) but bumped into other issues.

I will use some parts of this project, looks like it is not maintained anymore. Too bad, looked nice.

@josephgodwinkimani
Copy link
Author

@mrEckendonk other backend issues arise from using that branch. Does this require a later version of wordpress or specific versions of wordpress plugins?

@bmarshall511
Copy link

Thanks @mrEckendonk! Agree, looked like a great project. We were gonna try to fork it & fix it, but after digging in there are other issues related to Gutenberg blocks functionality & doesn't play nice with Next 13. Instead, decided to build our own starter using this project for some of the WP integration. Still in active dev & not ready, but would love some help from contributors: https://github.com/Highfivery/nextjs-starter

@mrEckendonk
Copy link

@josephgodwinkimani If I remember correctly, Gutenberg gives issues that can be solved by using WordPress 5.9.5. But afterward, you still have issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants