zhangyuang / egg-react-ssr

最小而美的Egg + React + SSR 服务端渲染应用骨架,同时支持JS和TS
http://doc.ssr-fc.com/
MIT License
1.91k stars 212 forks source link

通过yk-cli生成的react的typescript项目运行 npm run prod 报错 #144

Closed FishLuo1992 closed 4 years ago

FishLuo1992 commented 4 years ago

步骤

1、下载 yklcli工具。 2、生成react的typescript项目。 3、npm install. 4、npm run prod,出现错误。

▒▒▒▒▒▒▒▒▒ļ▒▒▒
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ssr-with-ts@2.1.3 prod: `rimraf dist && npm run build && NODE_ENV=production egg-scripts start --title=egg-server-ssr-with-ts --framework=midway --ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ssr-with-ts@2.1.3 prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-01-14T03_18_53_930Z-debug.log

尝试运行过 npm run start 没问题

zhangyuang commented 4 years ago

错误信息贴全一点