Skip to content

Instantly share code, notes, and snippets.

@jrodl3r
Created July 6, 2019 20:06
Show Gist options
  • Save jrodl3r/ca2cf2dfe79cd7cf871609cab386a2c5 to your computer and use it in GitHub Desktop.
Save jrodl3r/ca2cf2dfe79cd7cf871609cab386a2c5 to your computer and use it in GitHub Desktop.
⚡ nr build:ssr
> [email protected] build:ssr /app
> npm run build:bundles && npm run compile:server
> [email protected] build:bundles /app
> ng build --prod && ng run ng-fire-universal:server:production --bundleDependencies all
Date: 2019-07-06T19:58:26.134Z
Hash: 50622456cf8ca9707fa9
Time: 28286ms
chunk {0} runtime-es5.631ef95e759619b45050.js (runtime) 2.15 kB [entry] [rendered]
chunk {1} main-es5.8163adc3d9e928d63c92.js (main) 1020 kB [initial] [rendered]
chunk {2} polyfills-es5.943113ac054b16d954ae.js (polyfills) 111 kB [initial] [rendered]
chunk {3} 3-es5.945ee5f126d746e0aeef.js () 2.74 kB [rendered]
Date: 2019-07-06T19:58:53.111Z
Hash: 42f6a312e46b388468d4
Time: 26908ms
chunk {0} runtime-es2015.1ce2ab235d5aa5936156.js (runtime) 2.15 kB [entry] [rendered]
chunk {1} main-es2015.0ca270da7f4affab68b8.js (main) 963 kB [initial] [rendered]
chunk {2} polyfills-es2015.5728f680576ca47e99fe.js (polyfills) 36.4 kB [initial] [rendered]
chunk {3} styles.28f0cc8e232823e796b5.css (styles) 355 kB [initial] [rendered]
chunk {4} 4-es2015.1b5be8e20b436f4b60e9.js () 2.59 kB [rendered]
93% after chunk asset optimization SourceMapDevToolPlugin ...onents-_admin-admin-module-ngf 93% after chunk asset optimization SourceMapDevToolPlugin ...onents-_admin-admin-module-ngfHash: 31eb9c1ef316a1883f56
Time: 7858ms
Built at: 07/06/2019 12:59:02 PM
Asset Size Chunks Chunk Names
components-_admin-admin-module-ngfactory.js 29.7 KiB components-_admin-admin-module-ngfactory [emitted] components-_admin-admin-module-ngfactory
components-_admin-admin-module-ngfactory.js.map 5.36 KiB components-_admin-admin-module-ngfactory [emitted] components-_admin-admin-module-ngfactory
main.js 8.28 MiB main [emitted] [big] main
main.js.map 8.94 MiB main [emitted] main
Entrypoint main [big] = main.js main.js.map
chunk {components-_admin-admin-module-ngfactory} components-_admin-admin-module-ngfactory.js, components-_admin-admin-module-ngfactory.js.map (components-_admin-admin-module-ngfactory) 10.3 KiB <{main}> [rendered]
chunk {main} main.js, main.js.map (main) 7.46 MiB >{components-_admin-admin-module-ngfactory}< [entry] [rendered]
WARNING in ./node_modules/grpc/src/grpc_extension.js 32:12-33
Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/grpc/node_modules/node-pre-gyp/lib/pre-binding.js 20:22-48
Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/grpc/node_modules/node-pre-gyp/lib/util/versioning.js 17:20-67
Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/encoding/lib/iconv-loader.js 9:12-34
Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/bytebuffer/dist/bytebuffer-node.js
Module not found: Error: Can't resolve 'memcpy' in '/app/node_modules/bytebuffer/dist'
> [email protected] compile:server /app
> webpack --config webpack.server.config.js --progress --colors
Hash: 53a497338d13e3224685
Version: webpack 4.30.0
Time: 3212ms
Built at: 07/06/2019 12:59:06 PM
Asset Size Chunks Chunk Names
server.js 1020 KiB 0 [emitted] server
Entrypoint server = server.js
[0] ./server.ts 1.27 KiB {0} [built]
[3] external "events" 42 bytes {0} [built]
[4] external "https" 42 bytes {0} [built]
[5] external "http" 42 bytes {0} [built]
[6] external "net" 42 bytes {0} [built]
[7] external "tls" 42 bytes {0} [built]
[8] external "crypto" 42 bytes {0} [built]
[9] external "url" 42 bytes {0} [built]
[12] external "zlib" 42 bytes {0} [built]
[17] external "fs" 42 bytes {0} [built]
[18] external "path" 42 bytes {0} [built]
[19] external "os" 42 bytes {0} [built]
[22] external "stream" 42 bytes {0} [built]
[32] external "timers" 42 bytes {0} [optional] [built]
[151] external "require(\"./server/main\")" 42 bytes {0} [built]
+ 137 hidden modules
⚡ nr serve:ssr
> [email protected] serve:ssr /app
> node dist/server
/app/dist/server/main.js:166877
throw new Error("package.json does not exist at " + package_json_path);
^
Error: package.json does not exist at /app/dist/package.json
at Object../node_modules/grpc/node_modules/node-pre-gyp/lib/pre-binding.js.exports.find (/app/dist/server/main.js:166877:15)
at Object../node_modules/grpc/src/grpc_extension.js (/app/dist/server/main.js:183449:12)
at __webpack_require__ (/app/dist/server/main.js:26:30)
at Object../node_modules/grpc/src/client_interceptors.js (/app/dist/server/main.js:181180:12)
at __webpack_require__ (/app/dist/server/main.js:26:30)
at Object../node_modules/grpc/src/client.js (/app/dist/server/main.js:180033:27)
at __webpack_require__ (/app/dist/server/main.js:26:30)
at Object../node_modules/grpc/index.js (/app/dist/server/main.js:162694:14)
at __webpack_require__ (/app/dist/server/main.js:26:30)
at Object../node_modules/@firebase/firestore/dist/index.node.cjs.js (/app/dist/server/main.js:102631:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] serve:ssr: `node dist/server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve:ssr 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! /Users/poros/.npm/_logs/2019-07-06T19_59_28_302Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment