ng add @nguniversal/express-engine doesn't work with lib #13935
Labels
area: @schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
no
Description
running
ng add @nguniversal/express-engine --clientProject projectName
generatestsconfig.server.json
which has"baseUrl": "."
that broke thepaths
from the parenttsconfig.json
the
paths
option is used when generating a library so that the project reads the complied code from dist and works normally🔬 Minimal Reproduction
Reproduction repo
https://github.com/robertIsaac/ng-lib-ssr
generated as followed
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
solving the problem is to edit
src/tsconfig.server.json
and remove"baseUrl": "."
fromcompilerOptions
or add
to the
compilerOptions
but the latter refer to
lib-ssr/out-tsc
as tsc output so you may consider changing theoutDir
to../dist/out-tsc/app-server
so that it referlib-ssr/dist/out-tsc
as it suppose to but i'm not sure if it will matter at allThe text was updated successfully, but these errors were encountered: