question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shader 2 does not exist

See original GitHub issue

I’m trying to run the HelloBlue example React Native, but I get an error, saying “Shader 2 does not exist”, even though it is defined, just like in the example.

Library versions:

gl-react@3.6.0 
gl-react-native@3.6.0 
react@16.0.0-alpha.6
react-native@0.43.3 

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
kelsetcommented, Jun 12, 2017

I faced the same issue when I tried to do this:

<View style={styles.imageContainer}>
  <Surface style={styles.singleImage}>
    <Amaro>
      https://facebook.github.io/react/img/logo_og.png
    </Amaro>
  </Surface>
  <Text style={styles.baseText}>Amaro</Text>
</View>

Instead, to make it work with an image locally, I have to:

<View style={styles.imageContainer}>
  <Surface style={styles.singleImage}>
    <Amaro>
      {resolveAssetSource(require('./images/test.jpg'))}
    </Amaro>
  </Surface>
  <Text style={styles.baseText}>Amaro</Text>
</View>

(full code over here)

2reactions
martykancommented, Jun 10, 2017

I have one more problem - when I try to load an image from a URL, I get this error: uniform t: no loader found for value

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does this mean and how do I fix it? - Unity Forum
The GUID error means that the same file exists both in the URP and Shader Graph packages. Since packages are read-only, Unity can't...
Read more >
the node "mix shader" is not available - Blender Stack Exchange
When I hit shift A and try to find mix shader, its not available. the other nodes I need are there though. I...
Read more >
Shader uniform 'x' does not exist. - LÖVE
So i get that this is a common error, If a uniform doesn't contribute to the output of the shader, It gets optimized...
Read more >
glBindAttribLocation, name parameter non-existent in shader
I'm wondering if it's appropriate to call glBindAttribLocation when the provided name parameter does not exist anywhere in the shader.
Read more >
Audio2Face 2021.3.2 Error for loading shader files
021-10-19 00:47:34 [5438ms] [Error] [gpu.foundation.plugin] Cannot load shader file ... does not exist 2021-10-19 00:47:34 [5,438ms] [Error] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found