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
I found type error on maptalk.three while building web app with angular
In package.json: "maptalks": "^1.0.0-rc.18", "maptalks.three": "^0.35.2", "three": "^0.138.3", "@types/maptalks": "^0.49.1", "typescript": "^4.3.5"
In message log: [ng] Error: node_modules/maptalks.three/dist/BaseObjectTaskManager.d.ts:24:26 - error TS2694: Namespace '"C:/Workspace/retail-mobile-dashboard/node_modules/@types/maptalks/index"' has no exported member 'worker'. [ng] 24 getActor(): maptalks.worker.Actor; [ng] ~~~~~~ [ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:69:25 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations. [ng] 69 toolTip: import("../types/maptalks").ui.ToolTip; [ng] ~~~~~~~~~~~~~~~~~~~ [ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:70:28 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations. [ng] 70 infoWindow: import("../types/maptalks").ui.InfoWindow; [ng] ~~~~~~~~~~~~~~~~~~~ [ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:91:26 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations. [ng] 91 getMap(): import("../types/maptalks").Map; [ng] ~~~~~~~~~~~~~~~~~~~ [ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:92:29 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations. [ng] 92 getCenter(): import("../types/maptalks").Coordinate; [ng] ~~~~~~~~~~~~~~~~~~~ [ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:104:33 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations. [ng] 104 getInfoWindow(): import("../types/maptalks").ui.InfoWindow; [ng] ~~~~~~~~~~~~~~~~~~~ [ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:105:43 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations. [ng] 105 openInfoWindow(coordinate: import("../types/maptalks").Coordinate): any; [ng] ~~~~~~~~~~~~~~~~~~~ [ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:109:30 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations. [ng] 109 getToolTip(): import("../types/maptalks").ui.ToolTip; [ng] ~~~~~~~~~~~~~~~~~~~ [ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:110:40 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations. [ng] 110 openToolTip(coordinate: import("../types/maptalks").Coordinate): any; [ng] ~~~~~~~~~~~~~~~~~~~ [ng] Error: node_modules/maptalks.three/dist/index.d.ts:81:5 - error TS2416: Property 'prepareToDraw' in type 'ThreeLayer' is not assignable to the same property in base type 'CanvasLayer'. [ng] Type '(...args: any[]) => void' is not assignable to type '(context?: CanvasRenderingContext2D) => any[]'. [ng] Type 'void' is not assignable to type 'any[]'. [ng] 81 prepareToDraw(...args: any[]): void; [ng] ~~~~~~~~~~~~~ [ng] Error: node_modules/maptalks.three/dist/index.d.ts:328:55 - error TS2339: Property 'CanvasLayerRenderer' does not exist on type 'typeof renderer'. [ng] 328 declare class ThreeRenderer extends maptalks.renderer.CanvasLayerRenderer { [ng] ~~~~~~~~~~~~~~~~~~~ [ng] Error: node_modules/maptalks.three/dist/type/BaseAttribute.d.ts:2:10 - error TS2305: Module '"three"' has no exported member 'TypedArray'. [ng] 2 import { TypedArray } from 'three'; [ng]
The text was updated successfully, but these errors were encountered:
Temporary solution - add "skipLibCheck": true, to tsconfig.json compilerOptions
"skipLibCheck": true,
compilerOptions
Sorry, something went wrong.
No branches or pull requests
I found type error on maptalk.three while building web app with angular
In package.json:
"maptalks": "^1.0.0-rc.18",
"maptalks.three": "^0.35.2",
"three": "^0.138.3",
"@types/maptalks": "^0.49.1",
"typescript": "^4.3.5"
In message log:
[ng] Error: node_modules/maptalks.three/dist/BaseObjectTaskManager.d.ts:24:26 - error TS2694: Namespace '"C:/Workspace/retail-mobile-dashboard/node_modules/@types/maptalks/index"' has no exported member 'worker'.
[ng] 24 getActor(): maptalks.worker.Actor;
[ng] ~~~~~~
[ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:69:25 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations.
[ng] 69 toolTip: import("../types/maptalks").ui.ToolTip;
[ng] ~~~~~~~~~~~~~~~~~~~
[ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:70:28 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations.
[ng] 70 infoWindow: import("../types/maptalks").ui.InfoWindow;
[ng] ~~~~~~~~~~~~~~~~~~~
[ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:91:26 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations.
[ng] 91 getMap(): import("../types/maptalks").Map;
[ng] ~~~~~~~~~~~~~~~~~~~
[ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:92:29 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations.
[ng] 92 getCenter(): import("../types/maptalks").Coordinate;
[ng] ~~~~~~~~~~~~~~~~~~~
[ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:104:33 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations.
[ng] 104 getInfoWindow(): import("../types/maptalks").ui.InfoWindow;
[ng] ~~~~~~~~~~~~~~~~~~~
[ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:105:43 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations.
[ng] 105 openInfoWindow(coordinate: import("../types/maptalks").Coordinate): any;
[ng] ~~~~~~~~~~~~~~~~~~~
[ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:109:30 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations.
[ng] 109 getToolTip(): import("../types/maptalks").ui.ToolTip;
[ng] ~~~~~~~~~~~~~~~~~~~
[ng] Error: node_modules/maptalks.three/dist/MergedMixin.d.ts:110:40 - error TS2307: Cannot find module '../types/maptalks' or its corresponding type declarations.
[ng] 110 openToolTip(coordinate: import("../types/maptalks").Coordinate): any;
[ng] ~~~~~~~~~~~~~~~~~~~
[ng] Error: node_modules/maptalks.three/dist/index.d.ts:81:5 - error TS2416: Property 'prepareToDraw' in type 'ThreeLayer' is not assignable to the same property in base type 'CanvasLayer'.
[ng] Type '(...args: any[]) => void' is not assignable to type '(context?: CanvasRenderingContext2D) => any[]'.
[ng] Type 'void' is not assignable to type 'any[]'.
[ng] 81 prepareToDraw(...args: any[]): void;
[ng] ~~~~~~~~~~~~~
[ng] Error: node_modules/maptalks.three/dist/index.d.ts:328:55 - error TS2339: Property 'CanvasLayerRenderer' does not exist on type 'typeof renderer'.
[ng] 328 declare class ThreeRenderer extends maptalks.renderer.CanvasLayerRenderer {
[ng] ~~~~~~~~~~~~~~~~~~~
[ng] Error: node_modules/maptalks.three/dist/type/BaseAttribute.d.ts:2:10 - error TS2305: Module '"three"' has no exported member 'TypedArray'.
[ng] 2 import { TypedArray } from 'three';
[ng]
The text was updated successfully, but these errors were encountered: