javascript - 使用 React 编译 opencv.js 失败
问题描述
制作了一个反应网络应用程序create-react-app
并添加了opencv.js
文件以在我的应用程序中使用它。
当我使用“npm start”启动应用程序时,它会说:
Failed to compile
./src/lib/opencv.js
Line 2:39: 'define' is not defined no-undef
Line 4:5: 'define' is not defined no-undef
Line 30:2024: 'read' is not defined no-undef
Line 30:2180: 'readbuffer' is not defined no-undef
Line 30:2200: 'read' is not defined no-undef
而这样的例子不胜枚举。我究竟做错了什么?
解决方案
推荐阅读
- sql - 使用按子查询分组的计算字段
- r - 缺少值组合的完整数据框
- javascript - 在javascript中解析日期
- javascript - Typescript - 通过回调函数修改对象的变量
- c# - 在选择组合框时向 datagridview 中的下一个单元格添加值并删除选定的组合值
- oauth - 在 OIM 中配置软件和集成之间的确切区别是什么
- ios - (Swift)如何使用触摸按钮更改 pageviewcontroller 中的视图
- spring - 检索属性 pom.xml 的值
- c# - DropDown AutoPostBack 在 IIS 上不起作用
- javascript - 从弹簧控制器获取数据