CamanJS with React

848 Views Asked by At

I'm trying to use CamanJS with React, I'm installing as a node module with npm install caman per the documentation but I am getting an error. I've tried using require to bring it in, I've also tried import. The package is in my node_modules folder.

Heres the error:

enter image description here

Console Warning:

enter image description here

Any help is very much appreciated!

1

There are 1 best solutions below

0
amaclean On

Yeah, the issue is that fibers is looking for environment variables, but because you're running it in the browser, it can't find them. npm i -s caman is meant to be used with node. Kinda a bummer.