Skip to content
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

Nextjs throws Module not found: Can't resolve 'fs' #13

Closed
IbrahimSam96 opened this issue Sep 9, 2023 · 2 comments
Closed

Nextjs throws Module not found: Can't resolve 'fs' #13

IbrahimSam96 opened this issue Sep 9, 2023 · 2 comments

Comments

@IbrahimSam96
Copy link

**This problem is not because of glNoise ** - its because I'm not sure how to run glNoise in a client side component in nextjs (v13+) since it's using the 'fs' module.

@FarazzShaikh
Copy link
Owner

This library need a rewrite. I built this when I was inexperienced.

For now, use glNoise/build/glNoise.m pardon me if that path is not exactly right, not on my desk to double check, but you should be able to find the right module

@IbrahimSam96
Copy link
Author

Confirmed I used import { patchShaders } from 'gl-noise/build/glNoise.m' and it worked. Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants