Skip to content

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

@iamravisingh

Description

@iamravisingh

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
  • 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 deck.gl@9.1.2
npm start

Environment

  • Framework version: deck.gl@9.1.2
  • Browser: Chrome
  • OS: MacOs

Logs

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions