简体   繁体   English

CamanJS与React

[英]CamanJS with React

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. 我正在尝试将CamanJS与React一起使用,我正在按照文档将其安装为带有npm install caman的节点模块,但出现错误。 I've tried using require to bring it in, I've also tried import . 我尝试使用require将其引入,也尝试了import The package is in my node_modules folder. 程序包在我的node_modules文件夹中。

Heres the error: 继承人错误:

在此处输入图片说明

Console Warning: 控制台警告:

在此处输入图片说明

Any help is very much appreciated! 很感谢任何形式的帮助!

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. npm i -s caman旨在与节点一起使用。 Kinda a bummer. 有点讨厌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM