I created a custom Library with Angular Cli. It has the following structure:
- dist
- projects
- customLib
- src
- assets
- icons
- lib
- button
The button component gets as…
Within an Angular CLI workspace, I created a library foo. Within library foo, I added a typings.d.ts file. I then managed to reference a type defined in typings.d.ts from foo.module.ts using the Typescript triple-slash directive. Now, I would like…
may I ask you why my app works with ng serve and ng build but if I run protractor, my e2e test fails with this message?
[16:35:07] I/launcher - Running 1 instances of WebDriver
[16:35:07] I/direct - Using ChromeDriver directly...
[16:35:13]…
I had created an angular library with angular-cli v6 and ng-packagr that include ngx-bootstrap 3.0.1 as a peerDependency I have no problem running the app, but if I start protractor I get the folloing error:
I/launcher - Running 1 instances of…
I have developed some angular libraries with angular-cli 6.
Running the e2e the with protractor I have the following error:
E/launcher - Error: ReferenceError: window is not defined
at Object.…
I followed this tutorial by Nikolas LeBlanc for building an Angular 4 Component Library. The tutorial describes a way to reuse a module in another project by packaging one project and installing it in the other.
First, this are my software…
I recently upgraded my project to Angular 13, I noticed that the new ng-packgr 13 bundles in .mjs extension by default. I have lots of code that uses require() to import some static assets and files. I can change them to import() but is there any…
In Angular 13 the main app compiles in .js format but when we build library with ng build, output format are .mjs files
Can we build libs to .js with ng build in Angular 13?
I'm trying to use built .mjs library as custom plugin for webpack.config.ts…
I did upgrade to angular 12 but I'm not able to build libraries anymore. =
angular: v12.0.3, ng-packagr: 12.0.0
I'm running the following command ng build mylib --prod and get the following error
Building Angular Package
ERROR: Debug Failure. False…
I am trying to build an Angular library following documentation but unfortunately I am getting some issues while building it.
There are 2 main issues I am facing:
1st issue: Modules of the library are exported with full path
import MyComponentModule…
I'm trying to implement multiple entry points in to my angular library(similar to material library) & getting multiple errors.
Environment
Angular - 10.2.x
TypeScript - 3.9.x
ng-packagr - 10.1.x
Library structure is as below
@MyLib
├── src
…
I have a Angular library which I need to build for es5 so it can be used in IE.
I have followed this guide https://angular.io/guide/creating-libraries
Here´s my file structure:
In the tsconfig.lib.json I have changed to es5:
/* To learn more about…
I have a library that packages up several components and their corresponding modules.
I can import those modules by themselves in an external application and they work fine.
I tried to package them all up in an Uber module within the same library…
I'm trying to make an angular library with secondary entry point for every module.
I have three modules: A, B and C.
A is standalone, but B depends on C, meaning I have import to get C.module.ts in B.module.ts.
I followed this article, so I have a…
I have an Angular workspace (v10.0.2) containing a library and an app (for testing the library).
Inside my projects/libname/src/lib/tsconfig.lib.json I have some paths:
"baseUrl": "./src",
"paths": {
"@lib/*": ["lib/*"]
}
And I use it like…