Я следовал этому замечательному руководству по рендерингу на стороне сервера с Angular Universal https://angularfirebase.com/lessons/server-side-rendering-firebase-angular-universal/
Но при запуске npm run build:ssr && npm run serve:ssr
я получаю следующие ошибки:
Почему-то он не распознает пути, которые я определил в файле tsconfig.json
.
tsconfig.json
файл:
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "es2015",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
],
"paths": {
"@auth/*": [
"src/app/auth/*"
],
"@core/*": [
"src/app/core/*"
],
"@entities/*": [
"src/app/entities/*"
],
"@shared/*": [
"src/app/shared/*"
],
"@env/*": [
"src/environments/*"
],
"@reducers/*": [
"src/app/reducers/*"
],
}
}
}