angular-library Questions

9

Solved

I've created 3 angular libraries/packages: @example/ng-youtube-player containing a YoutubePlayerComponent and YoutubeApiService @example/ng-dailymotion-player containing a DailymotionPlayerCompone...
Subastral asked 5/7, 2021 at 21:56

4

Solved

I created an Angular-Library which is outside of my App-Workspace. The result is that I have two different workspaces. My first approach was building my Library and link /dist folder with my App. T...

4

I am facing Error: Cannot resolve type entity i10.BidiModule to symbol while building angular Lib project. There are 2 other lib projects which are building fine. This new lib project works well wi...

7

Solved

I have an Angular CLI workspace containing two library projects, foo and bar. When I build the second of the two libraries, foo, the build fails with the following error: error TS6059: File '/co...
Absinthe asked 14/8, 2018 at 21:32

3

Solved

I have created a custom ui library using only standalone components and here's my public-api.ts file. /* * Public API Surface of ih-ui-lib */ export * from './lib/ui-lib.service'; export * from ...

2

Solved

I've been moving chunks of shared code into a library that we can pull into our other projects, and part of that includes some core styles. I have the library itself working, eventually (griping ab...
Wenzel asked 15/7, 2022 at 7:30

4

Solved

I am building a library which contains a custom icon font. However, when I build my library using ng build <library-name> --prod, the assets folder is not included in the build, which means i...
Wendolyn asked 31/8, 2019 at 19:23

1

I'm currently working on an Angular application (version 16.1.3) which utilizes standalone components. This application also relies on an Angular library that uses NgModules. I'm attempting to impo...

11

Solved

I migrated my angular 8.x.x project to angular 9.x.x and when I try to publish my library, it fails with below error npm ERR! @candiman/[email protected] prepublishOnly: node --eval "consol...
Uttermost asked 14/2, 2020 at 21:57

4

The goal is to create component modules as Angular Library and keep it separate from the main application. So, components library maintained as standalone package published to NPM, and then can be ...
Acetous asked 2/9, 2021 at 11:7

3

I'm developing an angular library that perform strong computation operations. So I was interested in implementing the web worker in order to have a better user experience and let the complex operat...
Cynosure asked 17/7, 2019 at 9:29

4

Solved

In latest versions of Angular cli, we can use ng g library lib-name command to create library. As mentioned in the Angular docs : ng serve <project> And: <project> The name of the p...
Choleric asked 11/1, 2019 at 12:42

1

Solved

Follow up on this solution I've build a library with a component and a directive, which normally causes an import cycle. Component import { Component } from '@angular/core'; @Component({ selector...

4

I have an old angular library and when I migrate to angular 12 and try to build my library I am getting the below error: projects/namespace/lin-folder/src/lib/components/alerts/alerts.component.ts...
Picker asked 14/5, 2021 at 19:10

2

I'm trying to create an Angular v14 application that imports an Angular library that contains routing. My setup looks something like this: app.module.ts: (Main app) @NgModule({ declarations: [ Ap...
Karie asked 21/9, 2022 at 13:31

8

Solved

I have created one angular library using angular 8 and CLI 8. I am trying to build the library, but I am getting the error. ng build <lib-name> I have gone through some questions posted re...
Zedoary asked 29/9, 2019 at 13:10

4

Solved

I upgraded all my angular library to angular 9.0.0 using ng update and when I try to build them I got below error. Error: Unsupported private class SomeComponent. This class is visible to consu...
Lallygag asked 7/2, 2020 at 22:27

3

Solved

Im upgrading a private angular library/package (my-lib) so i can migrate all other projects, but when imported into a project one of the services uses moment and throws an error: "ERROR TypeEr...
Incensory asked 8/2, 2022 at 17:37

0

I have separate repositories for my shell & my microfrontends & I would like to share the auth service data between shell & microfrontends. I have used below article "Step 5: Share...

5

Solved

When building an Angular Library application, is there an automated way to keep the root level package.json and the library application's package.json (e.g. under projects/my-library) file versions...
Gilbart asked 6/6, 2019 at 21:25

2

When compiling an Angular library, I am getting this error concerning rootDir of my sub libraries library/services/src/public-api.ts:31:15 - error TS6059: File 'C:/libname/library/services/src/orde...
Shaggy asked 2/1, 2021 at 12:12

1

Why the library compiled in the "partial" compilation mode builds so slowly inside of the consumer application, compared to the "full" compilation mode?
Darondarooge asked 13/5, 2022 at 10:4

5

I was trying to add global styles in the same way like in angular app, but it totally does not work. My libraries' name is example-lib, so I added styles.css to /projects/example-lib/. I added styl...
Degeneration asked 19/11, 2018 at 15:5

2

Solved

I am trying to split up an Angular application with multiple modules into multiple (separate) Angular libraries (using this guide), so I can use these libraries within multiple Angular applications...
Elvaelvah asked 6/9, 2018 at 9:12

3

Solved

I've always been using the @ngx/json-ld package from Cory Rylan to render LD+json on my angular components. Today I tried upgrading my angular app to angular 12, but now it's giving errors. So I de...
Bertram asked 28/5, 2021 at 14:5

© 2022 - 2025 — McMap. All rights reserved.