drei
drei copied to clipboard
Failed to parse source map
threeversion:0.136.0@react-three/fiberversion: 7.0.24@react-three/dreiversion: 8.4.0nodeversion: 14.17.3npm(oryarn) version: 7.19.1
Problem description:
When i import OrbitalControls from react-three/drie i get a warning Failed to parse source map from 'D:\my-directory\node_modules@chevrotain\utils\lib\src\api.js.map'
Relevant code:
import { OrbitControls } from '@react-three/drei'
Screenshot of warning
The app works but the warning must be resolved to deploy

Seems to come from three-stdlib's VRMLLoader since it will import chevrotain from NPM. Maybe we should use three's vendored lib instead.
We had the same problem in v8.9.0, but it was fixed in v8.10.0. Was there a related change?
I believe I fixed this upstream at three-stdlib. I'll have to check to make sure.
I'm still seeing this issue on 8.11.0. Could they have changed something again?
Looks like I fixed similar for WebXR but for our own modules. This is an issue to bring up with https://github.com/Chevrotain/chevrotain, although we can vendor/tree-shake it ourselves.