deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Bug] ENOENT warnings due to missing .ts source files in @luma.gl/shadertools after upgrading to deck.gl v9.1.2

Open iamravisingh opened this issue 7 months ago • 0 comments

Description

After upgrading deck.gl from version 8.9.4 to 9.1.2 to use the new widgets feature, we started encountering multiple ENOENT warnings during bundling related to missing TypeScript source files in the @luma.gl/shadertools package — specifically in the wgsl_reflect folder.

This issue did not occur in version 8.9.4. The project is based on Create React App (CRA), and the issue occurs during development and/or production builds.

It seems the source maps generated during the build process reference .ts files that are not included in the published npm package.

We are using below 3 deckgl packages which then was intended to update it with v9.1.2

"@deck.gl/core": "^8.9.4",
"@deck.gl/layers": "^8.9.4",
"@deck.gl/react": "^8.9.4",

Example warning:

Failed to parse source map from '/Users/rasingh1/Documents/Workspace/indoor-panorama-viewer/node_modules/wgsl_reflect/src/ast/parse_context.ts' file: Error: ENOENT: no such file or directory, open '/Users/rasingh1/Documents/Workspace/indoor-panorama-viewer/node_modules/wgsl_reflect/src/ast/parse_context.ts'

Flavors

  • [ ] Script tag
  • [x] React
  • [ ] Python/Jupyter notebook
  • [ ] MapboxOverlay
  • [ ] GoogleMapsOverlay
  • [ ] CARTO
  • [ ] ArcGIS

Expected Behavior

After upgrading to 9.1.2 there should be ts compile errors

Steps to Reproduce

npm install [email protected] npm start

Environment

Logs

Image

iamravisingh avatar Apr 09 '25 11:04 iamravisingh