npm cant resolve package in azure
See original GitHub issueDescription of the problem
When adding threejs as a dependency on a project and trying to build it (tested both locally and in azure) the tsc cannot resolve these 2 errors. I have asked about this about a month ago and have since been working around the issue. However as we are setting up a pipeline to automatically compile our project, this no longer works as needed. Whenever an npm install
command is performed the issue returns on the tsc, presumably this is some kind of compilation issue related to using npm with threejs.
The error:
node_modules/three/src/geometries/ExtrudeGeometry.d.ts(2,10): error TS2440: Import declaration conflicts with local declaration of 'UVGenerator'. node_modules/three/src/materials/ShaderMaterial.d.ts(1,10): error TS2440: Import declaration conflicts with local declaration of 'ShaderMaterialParameters'.
The origin of the error:
import { ShaderMaterialParameters } from './ShaderMaterial'; export interface ShaderMaterialParameters extends MaterialParameters { //... }
Three.js version
- Tested with multiple versions from 104 - 113
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Hardware Requirements (graphics card, VR Device, …)
Issue Analytics
- State:
- Created 4 years ago
- Comments:14
Top GitHub Comments
Appears not, forums would probably have been a more appropriate place to re-raise the issue
Well, it seems this is no issue in the library…