I just ran into the same problem, and the root cause is that Multiple instances of Three.js being imported.
The code trigger this error is:
import { MeshBasicNodeMaterial } from 'three/src/Three.WebGPU.js';
which is “automatically added” by VSCode.
Change it to the belowing will fix this error:
import { MeshBasicNodeMaterial } from 'three/webgpu';