When main.js is compiled for SSR with in-memory-api Module the require erroneously point to ES6 files eg. http-client-in-memory-web-api.module.js and interfaces.js
This will cause a Node Error.
NodeInvocationException: Prerendering failed because of error: ...\Client\node_modules\angular-in-memory-web-api\http-client-in-memory-web-api.module.js:1
Instead requires should point directly to 'angular-in-memory-web-api' folder to load the dist umd module.
When
main.js
is compiled for SSR with in-memory-api Module the require erroneously point to ES6 files eg.http-client-in-memory-web-api.module.js
andinterfaces.js
require("angular-in-memory-web-api/http-client-in-memory-web-api.module")
This will cause a Node Error.
NodeInvocationException: Prerendering failed because of error: ...\Client\node_modules\angular-in-memory-web-api\http-client-in-memory-web-api.module.js:1
Instead requires should point directly to 'angular-in-memory-web-api' folder to load the dist umd module.