You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to import the library into the project, I get errors:
Error: node_modules/ngx-three/lib/generated/ThDataTexture2DArray.d.ts:2:10 - error TS2305: Module '"three"' has no exported member 'DataTexture2DArray'.
2 import { DataTexture2DArray } from 'three';
~~~~~~~~~~~~~~~~~~
Error: node_modules/ngx-three/lib/generated/ThDataTexture3D.d.ts:2:10 - error TS2724: '"three"' has no exported member named 'DataTexture3D'. Did you mean 'DataTexture'?
2 import { DataTexture3D } from 'three';
~~~~~~~~~~~~~
node_modules/@types/three/src/textures/DataTexture.d.ts:40:14
40 export class DataTexture extends Texture {
~~~~~~~~~~~
'DataTexture' is declared here.
Error: node_modules/ngx-three/lib/generated/ThMapControls.d.ts:3:10 - error TS2305: Module '"three/examples/jsm/controls/OrbitControls"' has no exported member 'MapControls'.
3 import { MapControls } from 'three/examples/jsm/controls/OrbitControls';
~~~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:10:30 - error TS2344: Type 'T["loadAsync"]' does not satisfy the constraint '(...args: any) => any'.
10 load(...args: Parameters<T['loadAsync']>): ReturnType<T['loadAsync']>;
~~~~~~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:10:30 - error TS2536: Type '"loadAsync"' cannot be used to index type 'T'.
10 load(...args: Parameters<T['loadAsync']>): ReturnType<T['loadAsync']>;
~~~~~~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:10:59 - error TS2344: Type 'T["loadAsync"]' does not satisfy the constraint '(...args: any) => any'.
10 load(...args: Parameters<T['loadAsync']>): ReturnType<T['loadAsync']>;
~~~~~~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:10:59 - error TS2536: Type '"loadAsync"' cannot be used to index type 'T'.
10 load(...args: Parameters<T['loadAsync']>): ReturnType<T['loadAsync']>;
~~~~~~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:18:5 - error TS2416: Property 'transform' in type 'ThAsyncLoaderBasePipe<T>' is not assignable to the same property in base type 'PipeTransform'.
Type '(...args: Parameters<T["loadAsync"]>) => Promise<any>' is not assignable to type '(value: any, ...args: any[]) => any'.
Types of parameters 'args' and 'value' are incompatible.
Type '[value: any, ...args: any[]]' is not assignable to type 'Parameters<T["loadAsync"]>'.
18 transform(...args: Parameters<T['loadAsync']>): Promise<any>;
~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:18:35 - error TS2344: Type 'T["loadAsync"]' does not satisfy the constraint '(...args: any) => any'.
18 transform(...args: Parameters<T['loadAsync']>): Promise<any>;
~~~~~~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:18:35 - error TS2536: Type '"loadAsync"' cannot be used to index type 'T'.
18 transform(...args: Parameters<T['loadAsync']>): Promise<any>;
~~~~~~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:26:72 - error TS2344: Type 'T["loadAsync"]' does not satisfy the constraint '(...args: any) => any'.
26 protected abstract getRefFromResponse(response: Awaited<ReturnType<T['loadAsync']>>): any;
~~~~~~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:26:72 - error TS2536: Type '"loadAsync"' cannot be used to index type 'T'.
26 protected abstract getRefFromResponse(response: Awaited<ReturnType<T['loadAsync']>>): any;
~~~~~~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:28:33 - error TS2344: Type 'T["loadAsync"]' does not satisfy the constraint '(...args: any) => any'.
28 protected _url?: Parameters<T['loadAsync']>[0];
~~~~~~~~~~~~~~
Error: node_modules/ngx-three/lib/loaders/ThAsyncLoaderBase.d.ts:28:33 - error TS2536: Type '"loadAsync"' cannot be used to index type 'T'.
28 protected _url?: Parameters<T['loadAsync']>[0];
When I try to import the library into the project, I get errors:
Package.json:
npm info ngx-three peerDependencies:
Is there any way to fix this? Thanks.
The text was updated successfully, but these errors were encountered: