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
simply loading the library using the code 'import { PointCloudOctree, Potree } from '@pnext/three-loader';' gives me some errors
ERROR in node_modules/@pnext/three-loader/build/declarations/materials/point-cloud-material.d.ts(152,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/materials/point-cloud-material.d.ts(153,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/materials/point-cloud-material.d.ts(154,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/materials/point-cloud-material.d.ts(155,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/materials/point-cloud-material.d.ts(157,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/materials/point-cloud-material.d.ts(158,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree-node.d.ts(17,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree-node.d.ts(18,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree-node.d.ts(19,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree-node.d.ts(20,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree-node.d.ts(21,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree-node.d.ts(22,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree-node.d.ts(23,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree-node.d.ts(24,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree-node.d.ts(25,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree.d.ts(53,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree.d.ts(54,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/point-cloud-octree.d.ts(77,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/potree.d.ts(26,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/potree.d.ts(27,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@pnext/three-loader/build/declarations/utils/lru.d.ts(19,9): error TS1086: An accessor cannot be declared in an ambient context.
The text was updated successfully, but these errors were encountered:
This is because typings files generated with TypeScript 3.7 are not backward compatible. Both Three.JS and three-loader have updated to 3.7. Update the TS version you use to 3.7+ and it will work.
However, there is a catch: the Angular compiler does not yet support this version. Support for it is scheduled for Angular 9.1, but there is a workaround, see angular/angular-cli#16071.
i am using angular 7 with three-loader,
simply loading the library using the code 'import { PointCloudOctree, Potree } from '@pnext/three-loader';' gives me some errors
The text was updated successfully, but these errors were encountered: