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') #1009

Closed
kodcuserkan opened this issue May 9, 2022 · 12 comments
Closed

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

kodcuserkan opened this issue May 9, 2022 · 12 comments

Comments

@kodcuserkan
Copy link

After installing the libs, when I run yarn dev I got TypeError: Cannot set properties of undefined (setting 'parent')
Screen Shot 2022-05-09 at 23 12 20

@paulpichot
Copy link

I have the same problem. Did you find a solution ?

@DimitriMichel
Copy link

DimitriMichel commented May 12, 2022

Make sure you're using npm and not yarn to install and run as mentioned here in the docs.

What I would try to do is delete .node-modules
and run this in your terminal

npm i --legacy-peer-deps
then
npm run dev

Hopefully that works for you.

@emilse-webdev
Copy link

emilse-webdev commented Jun 1, 2022

react and react-dom 18 returns that error, using react 17 solves the issue.

@ferremek
Copy link

ferremek commented Jul 14, 2022

Hi guys, did you figure out how to fix this error?

I have followed the official docs twice now and both times get this error.

  • I have node v16.15.0 and npm 8.5.5
  • I have the same package.json file as the main repo and it uses react and react-dom v17.0.2
  • I have installed npm with npm i --legacy-peer-deps

@sloyer
Copy link
Contributor

sloyer commented Jul 14, 2022

The latest update in tailwindcss broke it downgrade it to 3.0.23

@ferremek
Copy link

@sloyer Yes, that is it! Thanks a lot 😄

@kodcuserkan
Copy link
Author

I left the project after trying hard do make it up but fail :(

@mrEckendonk
Copy link

opened a new issue, #1059, and closed it referring to this

downgrading tailwind to 3.0.23 did not fix this issue

@apatwary12
Copy link

Downgrading tailwindcss to 3.0.23 and running npm i --legacy-peer-deps does not fix this issue.

@mrEckendonk
Copy link

This issue can temporarily be resolved by using the correct branch with the hotfix suggested by @itsamoreh
Downgrading tailwind to 3.0.23 won't fix due to [dependabot[bot] updates on the main branch.

Follow these steps:

git clone [email protected]:WebDevStudios/nextjs-wordpress-starter.git
cd nextjs-wordpress-starter
git branch fix/downgrade-tailwindcss
npm i 

** follow instructions to set up back & frontend.

npm run dev

Have fun

@adam-ainsworth
Copy link

I've been battling with this error too, but I found that using Node 16, downgrading react and react-dom to 16.14.0 and tailwindcss to 3.0.22 I was able to get it to build.

It's not sustainable but it'll do the job for a while.

WDS should either update the project or take down this tutorial if it's no longer supported.

@kodcuserkan
Copy link
Author

Since I do not (and will not) work with this project anymore closing this.

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

9 participants