Local export issues

Hi!
Every time I try to export a scene (even default one) on local npm installation I get this error in viewport despite having already run npm instal in the first place:

Dependencies needed for export
It looks like this project is a new one since its dependencies are not yet installed. This is necessary to export your scene.
In order to install the dependencies, run either
npm install or yarn
from your project directory.

here are the specs of my installation
react three fiber // javascript variant

and these are the warns I get after running npm install:
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: web-ifc-three@0.0.125
npm WARN Found: three@0.152.2
npm WARN node_modules/@polygonjs/polygonjs/node_modules/three
npm WARN three@“0.152.2” from @polygonjs/polygonjs@1.4.22
npm WARN node_modules/@polygonjs/polygonjs
npm WARN @polygonjs/polygonjs@“^1.4.2” from @polygonjs/react-three-fiber@1.4.2
npm WARN node_modules/@polygonjs/react-three-fiber
npm WARN 2 more (three-mesh-bvh, three-mesh-bvh)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer three@“^0.149.0” from web-ifc-three@0.0.125
npm WARN node_modules/@polygonjs/polygonjs/node_modules/web-ifc-three
npm WARN web-ifc-three@“0.0.125” from @polygonjs/polygonjs@1.4.22
npm WARN node_modules/@polygonjs/polygonjs
npm WARN
npm WARN Conflicting peer dependency: three@0.149.0
npm WARN node_modules/three
npm WARN peer three@“^0.149.0” from web-ifc-three@0.0.125
npm WARN node_modules/@polygonjs/polygonjs/node_modules/web-ifc-three
npm WARN web-ifc-three@“0.0.125” from @polygonjs/polygonjs@1.4.22
npm WARN node_modules/@polygonjs/polygonjs

I get also a ’threejs is not installed’ error when I try to install dependencies fromwindow>libraries

It looks like I‘m missing some very basic stuff here…
anyone could help clarifying?
:slightly_smiling_face:

Thanks a lot for this clear report, and it looks like you found a nasty bug.

I’ve just tested, and while the install works fine when using yarn, it does not when using npm. It seems that the reason is that the node_modules folder is populated differently, and polygonjs then fails to find the right version of threejs to get the draco and other libs from.

I’ll investigate and fix this, putting this in high priority, and will report back here.

But in the mean time, the only current work around I can suggest is to use yarn (and you could always switch back to npm later on if needed).

thank you for the quick feedback and for pointing out a viable alternative.
I will test it soon

I’ve just deployed a new version, 1.4.23, which should fix the problem.

Now, if the any of the sub modules depends on a different three version, and therefore leads to multiple threejs being installed deep inside the node_modules tree, polygonjs will be able to find the correct one and install the libraries like draco from there.

So if you want to upgrade an existing project, make sure to update the polygonjs-editor version. You may also need to update r3f, and for that, it can be useful to check the ones that the create tool would give from this file: https://github.com/polygonjs/create-polygonjs/blob/main/templates/react-three-fiber/package.json

But unfortunately, there seems to be an additional problem that just appeared, which is that npm install just hands and never completes ( when yarn still completes the installation just fine ). I don’t yet have an explanation for that. But I’ve had several other issues with npm over the years, so for now, I’ll just remove it from the doc. So for now, I still recommend to use yarn instead of npm.

I’ve looked again in this issue, and the hanging when running npm install seems to have been caused by dependency versions that could not be handled by npm. I’m still unsure of the exact reason behind this, as installing with yarn had no such problem, but I’ve just released 1.4.24 where the issue seems fixed.

I’ve written a more detailed explanation in the changelog if you’re curious.

Hi Gui,
Thank you for the detailed explanation and all the attempts to fix the issue.
I momentarily switched to the online version as I’m still in an experimentation process.
Anyway I can confirm you that the yarn installation works smoothly

To give you a feedback I just tried an npm install with new release and it gives me same issue during installation.
No big deal as yarn is doing the job nicely

During installation I get this warnings and actually the same problem with export:

install

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: web-ifc-three@0.0.125
npm WARN Found: three@0.152.2
npm WARN node_modules/@polygonjs/polygonjs/node_modules/three
npm WARN node_modules/@polygonjs/polygonjs
npm WARN @polygonjs/polygonjs@“^1.4.23” from @polygonjs/react-three-fiber@1.4.23
npm WARN node_modules/@polygonjs/react-three-fiber
npm WARN 1 more (polygonjs-editor)
npm WARN 1 more (three-mesh-bvh)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer three@“^0.149.0” from web-ifc-three@0.0.125
npm WARN node_modules/@polygonjs/polygonjs/node_modules/web-ifc-three
npm WARN web-ifc-three@“0.0.125” from @polygonjs/polygonjs@1.4.24
npm WARN node_modules/@polygonjs/polygonjs
npm WARN
npm WARN Conflicting peer dependency: three@0.149.0
npm WARN node_modules/three
npm WARN peer three@“^0.149.0” from web-ifc-three@0.0.125
npm WARN node_modules/@polygonjs/polygonjs/node_modules/web-ifc-three
npm WARN web-ifc-three@“0.0.125” from @polygonjs/polygonjs@1.4.24
npm WARN node_modules/@polygonjs/polygonjs

added 443 packages, and audited 444 packages in 1m

43 packages are looking for funding
run npm fund for details

4 moderate severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.

export

Dependencies needed for export

It looks like this project is a new one since its dependencies are not yet installed. This is necessary to export your scene.

In order to install the dependencies, run either npm installoryarn from your project directory.

1 Like

Thanks a lot for the feedback, and great to read that yarn works fine for you.

And thank you for letting me know you still hit issues with npm install, definitely good to know. I’ve actually just tried again here, with 1.4.25 that I’ve just released, and both the install process and the library installation work fine on my end.

There could still be a number of reason this could happen on a different system. So in case you ever decide to try again with npm, or if someone else reads this and faces the same issue, you could try the following:

  • delete the node_module and package-lock.json, and the re-install with npm i.
  • check the version of node ( with node --version ), I currently use v16.15.1
  • check the version of npm ( with npm --verison ), I currently use 9.7.2, which I believe is the most recent
  • check the version of polygonjs-editor ( in the package.json file ), which should be 1.4.24-2 or 1.4.25-1, or higher.
  • if nothing works, I’d be curious to see the content of the log file .polygonjs-editor.log from inside the project.

In any case, if yarn work for you, my recommendation is definitely to stick to it. That’s what I use every day.

Hi Gui,
I tested again after updating npm, here are my specs, but no success:
node version 18.16.0
npm version 9.7.2
polygonjs-editor 1.4.25-1

Maybe the problem is specific to my machine I could try to test it somewhere else
Below the content of the log file:

2023-06-26T06:59:06.216Z ===================================
2023-06-26T06:59:06.219Z
2023-06-26T06:59:06.220Z Polygonjs Editor (1.4.25-1) started on: e[32mhttp://localhost:8091e[39m
2023-06-26T06:59:06.221Z
2023-06-26T06:59:06.223Z ===================================
2023-06-26T06:59:20.599Z receiving: /scenes/scene_01/edit (renderApp)
2023-06-26T06:59:20.606Z _evalConfigureEditor START
2023-06-26T06:59:20.712Z _evalConfigureEditor DONE
2023-06-26T06:59:22.032Z receiving: /api/install/draco.json
2023-06-26T06:59:22.053Z checking folder exists ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\node_modules@polygonjs\polygonjs\node_modules\three\examples\jsm\libs\draco’: OK
2023-06-26T06:59:22.070Z receiving: /api/install/ktx2.json
2023-06-26T06:59:22.088Z checking folder exists ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\node_modules@polygonjs\polygonjs\node_modules\three\examples\jsm\libs\basis’: OK
2023-06-26T06:59:22.094Z receiving: /api/install/xatlas.json
2023-06-26T06:59:22.107Z receiving: /api/install/occt.json
2023-06-26T06:59:22.118Z receiving: /api/install/manifold.json
2023-06-26T06:59:22.122Z receiving: /api/poly_config/load.js
2023-06-26T06:59:22.128Z receiving: /api/install/ifc.json
2023-06-26T06:59:22.134Z receiving: /api/poly_config/load.js
2023-06-26T06:59:22.633Z receiving: /api/poly_nodes
2023-06-26T06:59:22.675Z receiving: /api/scenes/load?scene=scene_01
2023-06-26T06:59:22.829Z receiving: /scenes/scene_01/textures/piz_compressed.exr (asset)
2023-06-26T06:59:22.832Z asset redirect ‘/scenes/scene_01/textures/piz_compressed.exr’ → ‘textures/piz_compressed.exr’ (referer: ‘http://localhost:8091/scenes/scene_01/edit’)
2023-06-26T06:59:22.834Z ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\textures\piz_compressed.exr’ exists? true
2023-06-26T06:59:22.839Z receiving: /scenes/scene_01/textures/uv.jpg (asset)
2023-06-26T06:59:22.840Z asset redirect ‘/scenes/scene_01/textures/uv.jpg’ → ‘textures/uv.jpg’ (referer: ‘http://localhost:8091/scenes/scene_01/edit’)
2023-06-26T06:59:22.841Z ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\textures\uv.jpg’ exists? true
2023-06-26T06:59:22.879Z receiving: /api/editor_config/load.js
2023-06-26T06:59:23.280Z receiving: /api/multiplayer/users/index
2023-06-26T06:59:23.385Z receiving: /api/captures/status
2023-06-26T06:59:23.401Z receiving: /api/multiplayer/sessions/show
2023-06-26T06:59:23.814Z receiving: /api/multiplayer/userRequests/index
2023-06-26T06:59:23.849Z receiving: /api/multiplayer/sessions/show
2023-06-26T06:59:34.491Z receiving: / (renderApp)
2023-06-26T06:59:34.494Z _evalConfigureEditor START
2023-06-26T06:59:34.505Z _evalConfigureEditor DONE
2023-06-26T06:59:35.502Z receiving: /api/install/draco.json
2023-06-26T06:59:35.525Z checking folder exists ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\node_modules@polygonjs\polygonjs\node_modules\three\examples\jsm\libs\draco’: OK
2023-06-26T06:59:35.534Z receiving: /api/install/ktx2.json
2023-06-26T06:59:35.555Z checking folder exists ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\node_modules@polygonjs\polygonjs\node_modules\three\examples\jsm\libs\basis’: OK
2023-06-26T06:59:35.560Z receiving: /api/scenes
2023-06-26T06:59:35.569Z receiving: /api/install/xatlas.json
2023-06-26T06:59:35.580Z receiving: /polygonjs/screenshots/scenes/scene_01/poster.png?t=1087.300000011921 (asset)
2023-06-26T06:59:35.581Z asset redirect ‘/polygonjs/screenshots/scenes/scene_01/poster.png’ → ‘polygonjs/screenshots/scenes/scene_01/poster.png’ (referer: ‘http://localhost:8091/’)
2023-06-26T06:59:35.582Z ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\screenshots\scenes\scene_01\poster.png’ exists? true
2023-06-26T06:59:35.585Z receiving: /polygonjs/screenshots/scenes/scene_01/poster.webm?t=1087.300000011921 (asset)
2023-06-26T06:59:35.586Z asset redirect ‘/polygonjs/screenshots/scenes/scene_01/poster.webm’ → ‘polygonjs/screenshots/scenes/scene_01/poster.webm’ (referer: ‘http://localhost:8091/’)
2023-06-26T06:59:35.586Z ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\screenshots\scenes\scene_01\poster.webm’ exists? false
2023-06-26T06:59:35.597Z receiving: /api/install/occt.json
2023-06-26T06:59:35.601Z receiving: /polygonjs/screenshots/scenes/scene_01/poster.png?t=1087.300000011921 (asset)
2023-06-26T06:59:35.603Z asset redirect ‘/polygonjs/screenshots/scenes/scene_01/poster.png’ → ‘polygonjs/screenshots/scenes/scene_01/poster.png’ (referer: ‘http://localhost:8091/’)
2023-06-26T06:59:35.603Z ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\screenshots\scenes\scene_01\poster.png’ exists? true
2023-06-26T06:59:35.606Z receiving: /api/install/manifold.json
2023-06-26T06:59:35.615Z receiving: /api/install/ifc.json
2023-06-26T06:59:36.503Z receiving: /api/poly_config/load.js
2023-06-26T06:59:36.563Z receiving: /api/poly_config/load.js
2023-06-26T06:59:36.880Z receiving: /api/poly_nodes
2023-06-26T06:59:36.898Z receiving: /api/scenes/load?scene=scene_01
2023-06-26T06:59:37.020Z receiving: /scenes/scene_01/textures/piz_compressed.exr (asset)
2023-06-26T06:59:37.022Z asset redirect ‘/scenes/scene_01/textures/piz_compressed.exr’ → ‘textures/piz_compressed.exr’ (referer: ‘http://localhost:8091/scenes/scene_01/edit’)
2023-06-26T06:59:37.024Z ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\textures\piz_compressed.exr’ exists? true
2023-06-26T06:59:37.026Z receiving: /scenes/scene_01/textures/uv.jpg (asset)
2023-06-26T06:59:37.027Z asset redirect ‘/scenes/scene_01/textures/uv.jpg’ → ‘textures/uv.jpg’ (referer: ‘http://localhost:8091/scenes/scene_01/edit’)
2023-06-26T06:59:37.028Z ‘C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\textures\uv.jpg’ exists? true
2023-06-26T06:59:37.065Z receiving: /api/editor_config/load.js
2023-06-26T06:59:37.462Z receiving: /api/multiplayer/users/index
2023-06-26T06:59:37.556Z receiving: /api/captures/status
2023-06-26T06:59:37.563Z receiving: /api/multiplayer/sessions/show
2023-06-26T06:59:37.895Z receiving: /api/multiplayer/userRequests/index
2023-06-26T06:59:37.910Z receiving: /api/multiplayer/sessions/show
2023-06-26T06:59:45.616Z receiving: /api/utils/status.json?ping=0
2023-06-26T06:59:45.617Z respond with status: ‘waiting…’
2023-06-26T06:59:45.623Z receiving: /api/scenes/save
2023-06-26T06:59:45.625Z setStatus: ‘saving…’
2023-06-26T06:59:45.633Z setStatus: ‘saving common files’
2023-06-26T06:59:45.639Z backing up folder C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01 to C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\backup\scenes\scene_01\2023_5_26__8h59m45s_639ms
2023-06-26T06:59:45.689Z backup completed
2023-06-26T06:59:45.690Z deleting folder C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated
2023-06-26T06:59:45.711Z folder C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated deleted
2023-06-26T06:59:45.713Z deleting folder C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01
2023-06-26T06:59:45.723Z folder C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01 deleted
2023-06-26T06:59:45.800Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\ui.json
2023-06-26T06:59:45.818Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\editor.json
2023-06-26T06:59:45.826Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\properties.json
2023-06-26T06:59:45.831Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root.json
2023-06-26T06:59:45.850Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\geo1.json
2023-06-26T06:59:45.855Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\geo1\MAT.json
2023-06-26T06:59:45.864Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground.json
2023-06-26T06:59:45.871Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground\MAT.json
2023-06-26T06:59:45.921Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground\MAT\meshStandardBuilder1.json
2023-06-26T06:59:45.943Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\COP.json
2023-06-26T06:59:45.952Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\lights.json
2023-06-26T06:59:45.962Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\cameras.json
2023-06-26T06:59:45.968Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\cameras\cameraControls1.json
2023-06-26T06:59:45.970Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground\MAT\meshStandardBuilder1.vertex.glsl
2023-06-26T06:59:45.971Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground\MAT\meshStandardBuilder1.fragment.glsl
2023-06-26T06:59:45.972Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground\MAT\meshStandardBuilder1.customDepthMaterial.vertex.glsl
2023-06-26T06:59:45.977Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground\MAT\meshStandardBuilder1.customDepthMaterial.fragment.glsl
2023-06-26T06:59:45.980Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground\MAT\meshStandardBuilder1.customDistanceMaterial.vertex.glsl
2023-06-26T06:59:45.987Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground\MAT\meshStandardBuilder1.customDistanceMaterial.fragment.glsl
2023-06-26T06:59:45.988Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground\MAT\meshStandardBuilder1.customDepthDOFMaterial.vertex.glsl
2023-06-26T06:59:45.990Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\scenes\scene_01\root\ground\MAT\meshStandardBuilder1.customDepthDOFMaterial.fragment.glsl
2023-06-26T06:59:45.999Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\assets.json
2023-06-26T06:59:46.010Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\manifest.json
2023-06-26T06:59:46.013Z setStatus: ‘saving detail files’
2023-06-26T06:59:46.015Z file C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\index.html already exists, not replacing
2023-06-26T06:59:46.065Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\index.js
2023-06-26T06:59:46.119Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\index.d.ts
2023-06-26T06:59:46.136Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\fetchSceneAndMount.js
2023-06-26T06:59:46.150Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\fetchSceneAndMount.d.ts
2023-06-26T06:59:46.190Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\loadSceneData.js
2023-06-26T06:59:46.218Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\loadSceneData.d.ts
2023-06-26T06:59:46.268Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\loadScene.js
2023-06-26T06:59:46.308Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\loadScene.d.ts
2023-06-26T06:59:46.348Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\loadSceneFromSceneData.js
2023-06-26T06:59:46.378Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\loadSceneFromSceneData.d.ts
2023-06-26T06:59:46.382Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\modules.json
2023-06-26T06:59:46.417Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\requiredImports.js
2023-06-26T06:59:47.164Z updated file: C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\src\polygonjs\scenes\scene_01\autogenerated\PolySceneWithNodeMap.ts
2023-06-26T06:59:47.168Z export start
2023-06-26T06:59:47.169Z setStatus: ‘export start’
2023-06-26T06:59:47.176Z _evalConfigureEditor START
2023-06-26T06:59:47.185Z receiving: /api/utils/status.json?ping=1
2023-06-26T06:59:47.187Z respond with status: ‘export start’
2023-06-26T06:59:47.216Z _evalConfigureEditor DONE
2023-06-26T06:59:47.224Z setStatus: ‘addPublicUrl ‘textures/piz_compressed.exr’’
2023-06-26T06:59:47.228Z setStatus: ‘addPublicUrl ‘textures/uv.jpg’’
2023-06-26T06:59:47.233Z setStatus: ‘compiling js start’
2023-06-26T06:59:47.234Z deleting folder C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\js\scene_01
2023-06-26T06:59:47.235Z folder C:\Users\dan-asus\Desktop\AW-abagcarrara\polygonjs\npm_updated\polygon-project\public\polygonjs\js\scene_01 deleted
2023-06-26T06:59:47.238Z compile load js start
2023-06-26T06:59:47.428Z receiving: /api/utils/status.json?ping=2
2023-06-26T06:59:47.430Z respond with status: ‘compiling js start’
2023-06-26T06:59:47.646Z receiving: /api/utils/status.json?ping=3
2023-06-26T06:59:47.663Z respond with status: ‘compiling js start’
2023-06-26T06:59:47.901Z receiving: /api/utils/status.json?ping=4
2023-06-26T06:59:47.914Z respond with status: ‘compiling js start’
2023-06-26T06:59:48.178Z receiving: /api/utils/status.json?ping=5
2023-06-26T06:59:48.189Z respond with status: ‘compiling js start’
2023-06-26T06:59:48.460Z receiving: /api/utils/status.json?ping=6
2023-06-26T06:59:48.462Z respond with status: ‘compiling js start’
2023-06-26T06:59:48.692Z receiving: /api/utils/status.json?ping=7
2023-06-26T06:59:48.694Z respond with status: ‘compiling js start’
2023-06-26T06:59:48.924Z receiving: /api/utils/status.json?ping=8
2023-06-26T06:59:48.935Z respond with status: ‘compiling js start’
2023-06-26T06:59:49.208Z receiving: /api/utils/status.json?ping=9
2023-06-26T06:59:49.213Z respond with status: ‘compiling js start’
2023-06-26T06:59:49.492Z receiving: /api/utils/status.json?ping=10
2023-06-26T06:59:49.498Z respond with status: ‘compiling js start’
2023-06-26T06:59:49.794Z receiving: /api/utils/status.json?ping=11
2023-06-26T06:59:49.811Z respond with status: ‘compiling js start’
2023-06-26T06:59:50.042Z receiving: /api/utils/status.json?ping=12
2023-06-26T06:59:50.043Z respond with status: ‘compiling js start’
2023-06-26T06:59:50.104Z esbuild fails, trying with webpack…
2023-06-26T06:59:50.106Z setStatus: ‘esbuild fails, trying with webpack…’
2023-06-26T06:59:51.462Z setStatus: 'Physics nodes require a longer export method, it may take 20-30 more seconds… (1) ’
2023-06-26T06:59:51.466Z receiving: /api/utils/status.json?ping=13
2023-06-26T06:59:51.468Z respond with status: 'Physics nodes require a longer export method, it may take 20-30 more seconds… (1) ’
2023-06-26T06:59:51.792Z receiving: /api/utils/status.json?ping=14
2023-06-26T06:59:51.793Z respond with status: 'Physics nodes require a longer export method, it may take 20-30 more seconds… (1) ’
2023-06-26T06:59:52.006Z receiving: /api/utils/status.json?ping=15
2023-06-26T06:59:52.007Z respond with status: 'Physics nodes require a longer export method, it may take 20-30 more seconds… (1) ’
2023-06-26T06:59:52.218Z receiving: /api/utils/status.json?ping=16
2023-06-26T06:59:52.219Z respond with status: 'Physics nodes require a longer export method, it may take 20-30 more seconds… (1) ’
2023-06-26T06:59:52.273Z ERROR wepack compilation failed
2023-06-26T06:59:52.278Z ERROR export failed
2023-06-26T06:59:52.279Z ERROR esbuild fail

Thanks a lot for this log.
And I can indeed see that Polygonjs tries to compile the export and fails, but there doesn’t seem to be an obvious reason.
Then I was wondering if it was due to being on windows (I’m always on linux or mac, very rarely on windows), but since it works with yarn, it unlikely to be OS related.

I don’t want to waste too much of your time on this one, but if you could send me a zip of your project, I could then test it here and be sure I have the same exact files. If you have polygon open, you can do it quickly from the top menu → Windows → Share Scene → Create Zip Archive Of Full Project. It will create a zip without the node_modules folder, and the zip should be small enough to be shared by email.