AmadeusITGroup / otter

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
https://amadeusitgroup.github.io/otter/
BSD 3-Clause "New" or "Revised" License
47 stars 33 forks source link

[Bug]: build is failing for new Otter library #1717

Closed vscaiceanu-1a closed 3 weeks ago

vscaiceanu-1a commented 3 weeks ago

Package name

core, workspace

Package version

10.2.1

Reproduction steps

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.

vscaiceanu-1a commented 3 weeks ago

baseUrl issue is fixed in #1698

vscaiceanu-1a commented 3 weeks ago

fixed in #1718