plutoless / eEducation

e-education solutions(Agora Reference Design)
184 stars 124 forks source link

打包出错 #17

Closed seasun closed 6 years ago

seasun commented 6 years ago

当我运行 npm run package-win

ERROR in ./node_modules/_coffeescript@1.12.7@coffeescript/bin/coffee [0] Module parse failed: Unexpected character '#' (1:0) [0] You may need an appropriate loader to handle this file type. [0] | #!/usr/bin/env node [0] | [0] | var path = require('path'); [0] @ ./node_modules/_coffeescript@1.12.7@coffeescript/lib/coffee-script/register.js 52:13-48 [0] @ ./node_modules/_coffeescript@1.12.7@coffeescript/lib/coffee-script/coffee-script.js [0] @ ./node_modules/_cson-parser@3.0.0@cson-parser/lib/parse.js [0] @ ./node_modules/_cson-parser@3.0.0@cson-parser/lib/cson-parser.js [0] @ ./node_modules/_i18next-node-fs-backend@1.2.1@i18next-node-fs-backend/lib/index.js [0] @ ./node_modules/_i18next-node-fs-backend@1.2.1@i18next-node-fs-backend/index.js [0] @ ./app/config/i18next.config.js [0] @ ./app/main.dev.js [0] npm ERR! code ELIFECYCLE [0] npm ERR! errno 2

请问这是什么问题

seasun commented 6 years ago

i18n ,高阶组件用了coffee-script。换成react-intl实现绕开问题