three-geo icon indicating copy to clipboard operation
three-geo copied to clipboard

Error when executing npm

Open NicoBrug opened this issue 4 years ago • 5 comments

Hello,

I have some problems with the npm execution. I have some problems with the npm execution. The log file is below :

Capture

I managed to get the library to work with the dist file, which is your already packaged lib. However, I was not able to use your library from source. Do you know how I could fix this? I work on windows.

PS : What is deltaSeams ? Array tile size = "3x128x128 (+ deltaSeams)"

NicoBrug avatar Nov 23 '21 23:11 NicoBrug

Are you able to publish your solution? I’m trying to get it work with a new release of threejs and it keeps giving me errors

cesarecaoduro avatar Dec 01 '21 10:12 cesarecaoduro

Hello, if you want to get it work, you just need to put the dist build file of three-geo in your html and import three js before. What is the error ? Perhaps i can help you.

NicoBrug avatar Dec 05 '21 18:12 NicoBrug

This is the configuration of my project image image image image

cesarecaoduro avatar Dec 05 '21 21:12 cesarecaoduro

THREE not defined, so ThreeJS is not loaded, or is loaded after a ThreeJS dependent library.

The ThreeJS library needs to be loaded before three-geo. Three geo depends on threeJS. I did not see where you import the library in your code. Are you sure to import the threeJS library before three-geo?

NicoBrug avatar Dec 05 '21 21:12 NicoBrug

The import is in the first screenshot

cesarecaoduro avatar Dec 05 '21 23:12 cesarecaoduro