CHANNELS:

All
h
Shader file not loading
General
harp34 posted 3 years ago
import vertexShader from './shaders/vertex.glsl';
import fragmentShader from './shaders/fragement.glsl';

But i keep getting any error:
 [vite] Internal server error: Failed to resolve import "./shaders/fragement.glsl" from "main.js". Does the file exist?

I'm following your file structure and code, not sure what is happening.

Want to participate?

Create a free Chris Courses account to begin

or
Sign In

Providing the lift to launch your development career

© 2025 Chris Courses. All rights reserved.