drei icon indicating copy to clipboard operation
drei copied to clipboard

Failed to parse source map

Open Deepakmukka1 opened this issue 3 years ago • 5 comments

  • three version:0.136.0
  • @react-three/fiber version: 7.0.24
  • @react-three/drei version: 8.4.0
  • node version: 14.17.3
  • npm (or yarn) 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

image

Deepakmukka1 avatar Jan 16 '22 11:01 Deepakmukka1

Seems to come from three-stdlib's VRMLLoader since it will import chevrotain from NPM. Maybe we should use three's vendored lib instead.

CodyJasonBennett avatar Jan 27 '22 15:01 CodyJasonBennett

We had the same problem in v8.9.0, but it was fixed in v8.10.0. Was there a related change?

andres-flores-espol avatar Feb 15 '22 19:02 andres-flores-espol

I believe I fixed this upstream at three-stdlib. I'll have to check to make sure.

CodyJasonBennett avatar Feb 15 '22 19:02 CodyJasonBennett

I'm still seeing this issue on 8.11.0. Could they have changed something again?

ajnozari avatar Feb 27 '22 18:02 ajnozari

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.

CodyJasonBennett avatar Feb 27 '22 20:02 CodyJasonBennett