New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown shader module project32 #3213
Comments
Actually this bug appears on a few examples. It also does not depend on Browser, both Safari and Chrome are affected. |
Happens with GeoJson Layer as well. Error message:
Where "fc" is a FeatureCollection only consisting of one LineString with hundreds of coordinates.
|
@cschlueter Thanks for reporting. Please use |
Fixed in 7.1.2. It is available on either
or
The |
Thanks, selecting the version 7.1.2 explicitly did the trick. |
I still getting this error on 7.1.4 with ScatterplotLayer without using pre-bundled versions. |
I'm still blocked by this issue when trying to build an application with the following config:
I have tried different versions of @deck.gl/core after 7.1 but I can't seem to find the |
@sebastibe Can you try the following:
|
|
@sebastibe Your package.json does not explicitly depend on any deck.gl packages. They are not dependencies of the latest nebula.gl either. nebula-react looks like a deprecated package since it's depending on an old version of nebula.gl which depends on an older version of deck.gl. The ultimate test is always running @cschlueter This doesn't seem to be related to your issue, feel free to close and we can move to a different thread. |
@Pessimistress I'm still blocked on this issue.
I'm a bit out of imagination on where to go from here, any ideas? |
@sebastibe Can you run |
|
Nothing jumps out to me from the information you've shared. This error might be caused by one of the following:
|
This error occurred when I used |
I am seeing this issue as well. I am using npm to install my packages and it is an angular application. I am building the application with |
Any update on this? I'm having the same issue
A clean install doesn't solve it |
@mbarrenechea have you tried run |
Just an update I changed my dependencies to
and now it works... Who knows.... |
@Pessimistress yes I run it and I only had one
|
@mbarrenechea that is very curious. Do you have other dependencies that depend on deck? Are you able to share your full dependencies list so that I can try to reproduce? |
I have the same problem, and tracked it down to having no global deck object present.
I think the problem is that my previous header had only and no core library:
and it all worked until core version 7.1.0. Somehow 7.1.1 and up needs to run the init in @deck/core and it will not be run if core is not imported directly. Is there a better way to solve the "overly aggressive tree shaking"? |
This "hack" worked also for me. |
What bundler do you use? This field: |
I use webpack 4.38.0 but I think the problem is that I did not import and use @deck.gl/core. Just '@deck.gl/google-maps' and '@deck.gl/layers' (both have "sideEffects": false). I think the side effects of dependencies of imports are not respected. Just importing did not work too as webpack probably sees it as an unused library, thus the hack thing to make it think I'm using it. |
@pulges That would explain it. Thank you for the insight! We do have an ongoing discussion to remove side effects from core. |
Published 7.1.11 |
Perhaps related to visgl/deck.gl#3213
Description
My usage of path layer leads to error: "Unknown shader module project32"
Same goes for this example: https://deck.gl/showcases/gallery/highway
Repro Steps
Use example above.
Environment (please complete the following information):
Logs
dist.min.js:1 deck: error while initializing PathLayer({id: 'path-layer'})
Error: Unknown shader module project32
at i (dist.min.js:1)
at e.value (dist.min.js:1)
at dist.min.js:1
at Array.map ()
at e.value (dist.min.js:1)
at h (dist.min.js:1)
at T (dist.min.js:1)
at t.value (dist.min.js:1)
at t.value (dist.min.js:1)
at t.value (dist.min.js:1)
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
setProps @ dist.min.js:12
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
(anonymous) @ dist.min.js:1
Promise.then (async)
value @ dist.min.js:1
e @ dist.min.js:1
o @ dist.min.js:12
(anonymous) @ 2416456071?v=5:147
dist.min.js:1 Uncaught (in promise) Error: Unknown shader module project32
at i (dist.min.js:1)
at e.value (dist.min.js:1)
at dist.min.js:1
at Array.map ()
at e.value (dist.min.js:1)
at h (dist.min.js:1)
at T (dist.min.js:1)
at t.value (dist.min.js:1)
at t.value (dist.min.js:1)
at t.value (dist.min.js:1)
i @ dist.min.js:1
value @ dist.min.js:1
(anonymous) @ dist.min.js:1
value @ dist.min.js:1
h @ dist.min.js:1
T @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
e @ dist.min.js:1
t @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
setProps @ dist.min.js:12
value @ dist.min.js:1
value @ dist.min.js:1
value @ dist.min.js:1
(anonymous) @ dist.min.js:1
Promise.then (async)
value @ dist.min.js:1
e @ dist.min.js:1
o @ dist.min.js:12
(anonymous) @ 2416456071?v=5:147
The text was updated successfully, but these errors were encountered: