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

Cannot read property 'Descendant' of undefined when update to webpack 5.71.0 #738

Closed
jquintozamora opened this issue Apr 4, 2022 · 5 comments

Comments

@jquintozamora
Copy link

When updating to webpack 5.71.0, then I'm having this issue:

[webpack-cli] TypeError: Cannot read property 'Descendant' of undefined
at Object. (/home/vsts/work/1/s/node_modules/css-select/lib/compile.js:36:56)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object. (/home/vsts/work/1/s/node_modules/css-select/lib/index.js:29:17)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

@jquintozamora
Copy link
Author

Sorry for confusion, solved, it was related to a different update

@albertpak
Copy link

@jquintozamora what update was this related to? I started getting this error today in my Strapi setup :(

@MichaelDimitrasSentiLink

I was getting this same error. It was because I had an old version of css-what in my resolutions. Bumping to css-what 6.1.0 fixed it.

@rachelslurs
Copy link

rachelslurs commented May 23, 2022

Same here. It was because i was trying to fix an issue with enzyme by pinning a version of cheerio in my package.json enzymejs/enzyme#2518 (comment)

So currently my fix is (this is for the enzyme issue using yarn):

  "resolutions": {
    "cheerio": "1.0.0-rc.10",
    "css-what": "^6.0.1"
  }

@kapilgarg03
Copy link

kapilgarg03 commented Aug 2, 2023

Thanks Michael. I was unable to fix this error for quite some time but your solution worked like a charm. I was using "5.0.1" and bumping it to "6.1.0" fixed it.

HemanthKona pushed a commit to bcgov/family-law-act-app that referenced this issue Jul 22, 2024
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

5 participants