Contact me: hankecnc@gmail.com

缺少 JSON 文件会阻止编译 #295

推推 grbl 3年前 (2023-02-04) 323次浏览
关闭
hepabolu 开启了这个issue 2017 年 4 月 28 日 · 10 条评论
关闭

缺少 JSON 文件会阻止编译#295

hepabolu 开启了这个issue 2017 年 4 月 28 日 · 10 条评论

评论

缺少 JSON 文件会阻止编译 #295
赫帕博卢 评论了 2017 年 4 月 28 日  

git clone https://github.com/LaserWeb/LaserWeb4.git   # dev_es6, 4.0.728
cd LaserWeb4
npm install
npm start

编译失败,因为缺少 2 个文件:

./src/reducers/machine-profiles.js 中的
错误未找到模块:错误:无法解析 [path]/LaserWeb4/src 中的“文件”或“目录”../data/lw.machines/machine-profiles.json /reducers
@ ./src/reducers/machine-profiles.js 20:76-128

./src/reducers/material-database.js 中的
错误未找到模块:错误:无法解析 [path]/LaserWeb4/src 中的“文件”或“目录”../data/lw.materials/material-database.json /reducers
@ ./src/reducers/material-database.js 34:66-120

添加两个具有空 JSON 对象的文件后,编译成功

缺少 JSON 文件会阻止编译 #295
合作者
git clone https://github.com/LaserWeb/LaserWeb4.git   # dev_es6, 4.0.728
cd LaserWeb4
npm install

npm run installdev

npm start