Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to resolve 'three/webgpu' from './node_modules/three-render-objects/dist/three-render-objects.mjs' #691

Open
micrology opened this issue Nov 3, 2024 · 3 comments

Comments

@micrology
Copy link

Describe the bug
After upgrading to version 1.73.5, the build fails with:

🚨 Build failed.

@parcel/core: Failed to resolve 'three/webgpu' from './node_modules/three-render-objects/dist/three-render-objects.mjs'

  /Users/scs1ng/Sites/prsm/node_modules/three-render-objects/dist/three-render-objects.mjs:2:32
    1 | import { WebGLRenderer, Scene, PerspectiveCamera, Raycaster, SRGBColorSpace, TextureLoader, Vector2, Vector3, Box3, Color, Mesh, SphereGeometry, MeshBasicMaterial, BackSide, EventD
  > 2 | import { WebGPURenderer } from 'three/webgpu';
  >   |                                ^^^^^^^^^^^^^^
    3 | import { TrackballControls } from 'three/examples/jsm/controls/TrackballControls.js';
    4 | import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';

@parcel/resolver-default: Cannot load file './webgpu' from module 'three'

To Reproduce

npm install [email protected]
npm install three

Expected behavior
Build succeeds (as it it did on previous versions - no code changed, just the version of 3d-force-graph from 1.73.4 to 1.73.5 (and three-forcegraph from 1.41.14 to 1.42.2) and three from 0.169.0 to 0.170.0

Desktop (please complete the following information):

  • OS: Mac OS
  • Browser N/A
  • Version N/A

*Bundler
Parcel 2.12.0

@INAGIML
Copy link

INAGIML commented Dec 5, 2024

The version I am using
"three": "^0.144.0",
"three-forcegraph": "^1.39.5",
"three-render-objects": "^1.27.3",
"three-spritetext": "^1.6.5",
"3d-force-graph": "^1.70.13",

@stevenqyx
Copy link

I encountered the same problem
Error:can't resolve 'three/webgpu' in './node_modules/three-render-objects/dist'

@lizzie8023
Copy link

I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants