Skip to content

Instantly share code, notes, and snippets.

@jrodl3r
Created July 9, 2019 03:05
Show Gist options
  • Save jrodl3r/4fb00a40011d02a0c3f0bde1afc99930 to your computer and use it in GitHub Desktop.
Save jrodl3r/4fb00a40011d02a0c3f0bde1afc99930 to your computer and use it in GitHub Desktop.
⚡ nr build:ssr
> ng-fire-universal@1.0.0 build:ssr /app
> npm run build:bundles && npm run compile:server
> ng-fire-universal@1.0.0 build:bundles /app
> ng build --prod && ng run ng-fire-universal:server:production --bundleDependencies all
Date: 2019-07-09T03:02:21.074Z
Hash: 92ea2300555f547fba88
Time: 28764ms
chunk {0} runtime-es5.631ef95e759619b45050.js (runtime) 2.15 kB [entry] [rendered]
chunk {1} main-es5.2ae9d1aad034ae29bd4d.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-09T03:02:49.039Z
Hash: 816f6becd733b74e70be
Time: 27888ms
chunk {0} runtime-es2015.1ce2ab235d5aa5936156.js (runtime) 2.15 kB [entry] [rendered]
chunk {1} main-es2015.4bf219254f6c09de8749.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: 0d8813f9374f9c85c951
Time: 8683ms
Built at: 07/08/2019 8:03:01 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'
> ng-fire-universal@1.0.0 compile:server /app
> webpack --config webpack.server.config.js --progress --colors
Hash: e3a2fa142f81198d4d39
Version: webpack 4.30.0
Time: 3244ms
Built at: 07/08/2019 8:03:05 PM
Asset Size Chunks Chunk Names
server.js 832 KiB 0 [emitted] server
Entrypoint server = server.js
[0] ./server.ts 1.17 KiB {0} [built]
[2] external "events" 42 bytes {0} [built]
[3] external "fs" 42 bytes {0} [built]
[4] external "timers" 42 bytes {0} [optional] [built]
[5] external "crypto" 42 bytes {0} [built]
[13] external "path" 42 bytes {0} [built]
[22] external "util" 42 bytes {0} [built]
[31] external "net" 42 bytes {0} [built]
[37] external "buffer" 42 bytes {0} [built]
[58] external "stream" 42 bytes {0} [built]
[77] external "querystring" 42 bytes {0} [built]
[84] external "url" 42 bytes {0} [built]
[91] external "http" 42 bytes {0} [built]
[101] ./src sync 160 bytes {0} [built]
[129] external "require(\"./server/main\")" 42 bytes {0} [built]
+ 115 hidden modules
⚡ nr serve:ssr
> ng-fire-universal@1.0.0 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! ng-fire-universal@1.0.0 serve:ssr: `node dist/server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ng-fire-universal@1.0.0 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-09T03_03_21_482Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment