export type * from "@maplibre/maplibre-gl-style-spec" #3179
Unanswered
AhmedBenJaballah
asked this question in
Q&A
Replies: 2 comments
-
the solution was just adding "skipLibCheck": true, in the tsconfig.json |
Beta Was this translation helpful? Give feedback.
0 replies
-
FYI, this isn't needed in the current version of Angular. The problem is that the syntax is only supported in more recent versions of TypeScript. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I recently installed MapLibre GL 3.3.1 and wanted to use it with Angular/TypeScript. When I started the application, I encountered the following error:
Error TS1383: Only named exports may use 'export type'.
export type * from "@maplibre/maplibre-gl-style-spec"
However, I was able to solve the problem by navigating to node_modules/maplibre-gl/dist/maplibre-gl.d.ts and then deleting the word 'type' from the line 11564 'export type * from "@maplibre/maplibre-gl-style-spec".'
Does anyone have another solution to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions