The Otter project is a highly modular framework whose goal is to provide a common platform to accelerate and facilitate the development of runtime customizable Angular based Web Applications
npm create @o3r otter-project
cd otter-project
ng g library somelib
npm run ng build somelib
Current result
------------------------------------------------------------------------------
Building entry point 'somelib'
------------------------------------------------------------------------------
✖ Compiling with Angular sources in Ivy partial compilation mode.
error TS5090: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
Adding baseUrl by hand leads to another error:
Dependency @o3r/core must be explicitly allowed using the "allowedNonPeerDependencies" option.
Expected result
Build success
Additional comments
The second error comes from the fact that @o3r/core is added as dependency and not devDependency on the generated library.
Package name
core, workspace
Package version
10.2.1
Reproduction steps
Current result
Adding
baseUrl
by hand leads to another error:Dependency @o3r/core must be explicitly allowed using the "allowedNonPeerDependencies" option.
Expected result
Build success
Additional comments
The second error comes from the fact that
@o3r/core
is added asdependency
and notdevDependency
on the generated library.