Would you like to work on a fix?
Current and expected behavior
After 4.1.2 update:
- NPM does not show blue types icon (
This package contains built-in TypeScript declarations)
- Typescript whines about types
TS2307: Cannot find module 'browserslist-useragent-regexp' or its corresponding type declarations. There are types at '/Users/xyz/Workspace/abc/node_modules/browserslist-useragent-regexp/dist/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
Changing moduleResolution from node to 'node16', 'nodenext', or 'bundler', opens another can of worms in my project.
I believe it's this change: f014612#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L33
Was this change intentional?
4.1.1 https://www.npmjs.com/package/browserslist-useragent-regexp/v/4.1.1?activeTab=code
4.1.2 https://www.npmjs.com/package/browserslist-useragent-regexp/v/4.1.2?activeTab=code
Reproduction
N/A
browserslist-useragent-regexp version
v4.1.2
Possible solution
- bring back
"types": "./dist/index.d.ts" part
Would you like to work on a fix?
Current and expected behavior
After 4.1.2 update:
This package contains built-in TypeScript declarations)TS2307: Cannot find module 'browserslist-useragent-regexp' or its corresponding type declarations. There are types at '/Users/xyz/Workspace/abc/node_modules/browserslist-useragent-regexp/dist/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.Changing moduleResolution from
nodeto 'node16', 'nodenext', or 'bundler', opens another can of worms in my project.I believe it's this change: f014612#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L33
Was this change intentional?
4.1.1 https://www.npmjs.com/package/browserslist-useragent-regexp/v/4.1.1?activeTab=code
4.1.2 https://www.npmjs.com/package/browserslist-useragent-regexp/v/4.1.2?activeTab=code
Reproduction
N/A
browserslist-useragent-regexp version
v4.1.2
Possible solution
"types": "./dist/index.d.ts"part