We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@react-leaflet/core/lib/context
"module": "preserve"
tsconfig.json
I'm running tsc with the preserve value for the module setting in tsconfig.json on a project with React Leaflet.
tsc
preserve
module
No tsc errors are found.
tsc throws the following errors:
node_modules/react-leaflet/lib/LayersControl.d.ts:9:65 - error TS2307: Cannot find module '@react-leaflet/core/lib/context' or its corresponding type declarations. 9 layerContainer?: import("leaflet").LayerGroup<any> | import("@react-leaflet/core/lib/context").ControlledLayer | undefined; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/react-leaflet/lib/LayersControl.d.ts:18:69 - error TS2307: Cannot find module '@react-leaflet/core/lib/context' or its corresponding type declarations. 18 layerContainer?: import("leaflet").LayerGroup<any> | import("@react-leaflet/core/lib/context").ControlledLayer | undefined; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/react-leaflet/lib/LayersControl.d.ts:30:69 - error TS2307: Cannot find module '@react-leaflet/core/lib/context' or its corresponding type declarations. 30 layerContainer?: import("leaflet").LayerGroup<any> | import("@react-leaflet/core/lib/context").ControlledLayer | undefined; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ node_modules/react-leaflet/lib/SVGOverlay.d.ts:11:65 - error TS2307: Cannot find module '@react-leaflet/core/lib/context' or its corresponding type declarations. 11 layerContainer?: import("leaflet").LayerGroup<any> | import("@react-leaflet/core/lib/context").ControlledLayer | undefined; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Found 4 errors in 2 files. Errors Files 3 node_modules/react-leaflet/lib/LayersControl.d.ts:9 1 node_modules/react-leaflet/lib/SVGOverlay.d.ts:11
I've made a minimal repro: https://github.com/40thieves/ts-react-leaflet which installs the relevant dependencies and configures tsconfig.json with the module: preserve setting. To reproduce, you need to:
module: preserve
npm install
npm run check
(apologies, I'm not sure StackBlitz would work as it's related to running tsc)
The text was updated successfully, but these errors were encountered:
Patch exports in @react-leaflet/core
e4ecd71
See PaulLeCam/react-leaflet#1141
4622064
3332fe6
No branches or pull requests
Bug report in v4
I'm running
tsc
with thepreserve
value for themodule
setting intsconfig.json
on a project with React Leaflet.Expected behavior
No tsc errors are found.
Actual behavior
tsc throws the following errors:
Steps to reproduce
I've made a minimal repro: https://github.com/40thieves/ts-react-leaflet which installs the relevant dependencies and configures
tsconfig.json
with themodule: preserve
setting. To reproduce, you need to:npm install
npm run check
(apologies, I'm not sure StackBlitz would work as it's related to running tsc)
The text was updated successfully, but these errors were encountered: