小编mf3*_*340的帖子

使用@nguniversal/express-engine 包的 angular SSR 收到此错误(错误 TS6053 中的错误:找不到文件“/project/src/server.ngtypecheck.ts”。)

我正在使用@nguniversal/express-engine 在 angular 中进行服务器端渲染。当我运行$ nmp build:ssr或出现$ npm run dev:ssr此错误时。

ERROR in error TS6053: File 'C:/dev/web/workspace/project/src/server.ngtypecheck.ts' not found.
error TS6053: File 'C:/dev/web/workspace/project/src/server.ts' not found.
error TS6053: File 'C:/dev/web/workspace/project/src/src/main.server.ngtypecheck.ts' not found.
error TS6053: File 'C:/dev/web/workspace/project/src/src/main.server.ts' not found.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client@0.0.0 build:ssr: `ng build --prod && ng run client:server:production`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client@0.0.0 build:ssr script.
npm ERR! This is probably not a …
Run Code Online (Sandbox Code Playgroud)

node.js npm server-side-rendering angular

3
推荐指数
1
解决办法
476
查看次数

标签 统计

angular ×1

node.js ×1

npm ×1

server-side-rendering ×1