question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm cant resolve package in azure

See original GitHub issue
Description 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:closed
  • Created 4 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
torbenvanasschecommented, Feb 25, 2020

Appears not, forums would probably have been a more appropriate place to re-raise the issue

0reactions
Mugen87commented, Feb 25, 2020

Well, it seems this is no issue in the library…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't npm install in azure with pipeline and outside library ...
I have been able to download the packages through the public npm registry and then authenticate on my azure artifacts to download the...
Read more >
Error installing npm package on Azure app service deploy
I'm trying to deploy my reactjs project on Azure app service but when I started the deploy I get the follow log error...
Read more >
Error when adding service-bus to React project #22188 - GitHub
Hello there, I am trying to set up a ReactJS project with Azure's service bus ... found: Error: Can't resolve 'os' BREAKING CHANGE:...
Read more >
Manage npm packages - Visual Studio (Windows)
npm allows you to install and manage packages for use in both Node.js and ASP.NET Core applications. Visual Studio makes it easy to...
Read more >
@azure/cosmos - npm
Microsoft Azure Cosmos DB Service Node.js SDK for SQL API. ... TypeScript icon, indicating that this package has built-in type declarations.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found