When using "moduleResolution": "Bundler" in tsconfig.json for a TypeScript project, and implicitly referencing SWRInfiniteMutatorOptions you get this error:
Exported variable '<redacted>' has or is using name 'SWRInfiniteMutatorOptions' from external module "/path/node_modules/swr/dist/infinite/index" but cannot be named.ts(4023)
These errors can be resolved by explicitly exporting these implicitly references types from swr.
When using
"moduleResolution": "Bundler"
in tsconfig.json for a TypeScript project, and implicitly referencingSWRInfiniteMutatorOptions
you get this error:These errors can be resolved by explicitly exporting these implicitly references types from
swr
.