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 properties of undefined (reading 'B') after update library to 1.0.30001655 version #129

Open
andrewst opened this issue Aug 30, 2024 · 4 comments

Comments

@andrewst
Copy link

We started getting errors after updating the library from 1.0.30001653 to 1.0.30001655.

TypeError: Cannot read properties of undefined (reading 'B') at Module.unpackFeature (my-project/node_modules/.pnpm/[email protected]/node_modules/caniuse-lite/dist/unpacker/feature.js:31:29) at BrowserSelection.compileBrowserSupport (file://my-project/node_modules/.pnpm/[email protected]/node_modules/doiuse/lib/BrowserSelection.js:148:35) at BrowserSelection.missingSupport (file://my-project/node_modules/.pnpm/[email protected]/node_modules/doiuse/lib/BrowserSelection.js:178:27) at DoIUse.postcss (file://my-project/node_modules/.pnpm/[email protected]/node_modules/doiuse/lib/DoIUse.js:67:43) at file://my-project/node_modules/.pnpm/[email protected][email protected]/node_modules/stylelint-no-unsupported-browser-features/lib/index.js:99:27 at file://my-project/node_modules/.pnpm/[email protected][email protected]/node_modules/stylelint/lib/lintPostcssResult.mjs:112:8 at Array.map (<anonymous>) at lintPostcssResult (file://my-project/node_modules/.pnpm/[email protected][email protected]/node_modules/stylelint/lib/lintPostcssResult.mjs:102:18) at async lintSource (file://my-project/node_modules/.pnpm/[email protected][email protected]/node_modules/stylelint/lib/lintSource.mjs:108:2) at async file://my-project/node_modules/.pnpm/[email protected][email protected]/node_modules/stylelint/lib/standalone.mjs:236:27

@ai
Copy link
Member

ai commented Aug 30, 2024

It happened because caniuse-db deleted some information, which was used by stylelint-no-unsupported-browser-features

Fyrd/caniuse@0a84cfd

You need to open an issue in stylelint-no-unsupported-browser-features

@andrewst
Copy link
Author

andrewst commented Aug 30, 2024

The issue has already been opened.
RJWadley/stylelint-no-unsupported-browser-features#299

@Jameskmonger
Copy link

Jameskmonger commented Sep 19, 2024

My recommendation to users of caniuse/caniuse-lite would be to always rely on a specific version rather than accepting a version range (e.g. ~ or ^).

This was a breaking change published under a patch update (1.0.30001654 -> 1.0.30001655)

@dkrnl
Copy link

dkrnl commented Sep 19, 2024

temporal fix: npm i [email protected] --save-exact

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

4 participants