mapbox / mapbox/mapbox-gl-js

The JS cannot import the GLSL file.When we run test-unit, the message "undefined" is displayed.

Open
#12,492 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs information :pray:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

In src/shaders/shaders.js:
![image](https://user-images.githubusercontent.com/56541965/209637775-4b8c062b-c888-498a-88e9-b5d54031948c.png)
![image](https://user-images.githubusercontent.com/56541965/209637924-f1c08d10-748e-4d7c-ad87-ea8896f5df5e.png)
When I run test-unit
![image](https://user-images.githubusercontent.com/56541965/209637881-29341eac-982e-4fdf-af86-a9814d0303e2.png)

the message "undefined" is displayed and prompt timeout,3000

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/shaders/shaders.js and reproduce the failure with test-unit, using the screenshots and the reported undefined message as the observed behavior. Done means the GLSL file imports successfully during the unit test and the undefined message and prompt timeout no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.