-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
three0.167.1 vite build bug #29054
Comments
Do you mind trying it with this Vite configuration: #28650 (comment) |
I think imports from three/webgpu may need to be avoided somehow here: |
/ping @Methuselah96 |
It sounds like you probably have See three-types/three-ts-types#1136 for more info and/or to discuss further. |
Merging this issue into three-types/three-ts-types#1136. |
|
Description
I have no issues using version 0.166.0.
0.167.1:
yarn run build
yarn run v1.22.19
$ vue-tsc && vite build
node_modules/@types/three/examples/jsm/loaders/KTX2Loader.d.ts:2:42 - error TS2307: Cannot find module 'three/webgpu' or its corresponding type declarations.
There are types at '/Users/channel1/Desktop/Project/DigitalTwin/node_modules/@types/three/build/three.webgpu.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
2 import { Renderer, WebGPURenderer } from "three/webgpu";
error Command failed with exit code 2.
Reproduction steps
1.version: "@types/three": "^0.167.1","three": "^0.167.1",
2.yarn run build
3.error Command failed with exit code 2.
Code
// code goes here
Live example
Screenshots
Version
r167.1
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: