Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Cannot set property 'parent' of undefined when plugins added #21

Closed
merelinguist opened this issue Mar 15, 2021 · 4 comments
Closed

Cannot set property 'parent' of undefined when plugins added #21

merelinguist opened this issue Mar 15, 2021 · 4 comments

Comments

@merelinguist
Copy link

I’m currently trying to integrate this with a Next.js project, but am receiving this error:

error - ./node_modules/tailwindcss/tailwind.css ((webpack)/css-loader/cjs.js??ref--5-oneOf-5-1!(webpack)/postcss-loader/cjs.js??ref--5-oneOf-5-2!./node_modules/tailwindcss/tailwind.css)
TypeError: Cannot set property 'parent' of undefined

I can’t seem to reproduce it, but strangely when I remove the plugins from my Tailwind config, Next happily compiles: https://github.com/merelinguist/strove/blob/39a64dc7ef32c36742446e9716cb4781d83d1fcf/tailwind.config.js#L14-L18.

@chriswdmr
Copy link

Try updating to the latest postcss, I also had this issue but updating it, resolved it for me:
npm install -D postcss@latest

@merelinguist
Copy link
Author

Try updating to the latest postcss, I also had this issue but updating it, resolved it for me:
npm install -D postcss@latest

This fixed it for me too.

@mwarger
Copy link

mwarger commented Mar 20, 2021

@merelinguist @chriswdmr Would you be able to share more of your config or versions? I'm still getting the same error after updating to the latest postcss version.

@elie222
Copy link

elie222 commented Mar 21, 2021

Facing same issue. He shared his project in the original post: merelinguist/strove-old@39a64dc/tailwind.config.js#L14-L18

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

4 participants