Comments (2)
Revisited this after a while and found the problem.
It's due to how tslib is imported, which doesn't work with the Closure compiler.
The lib needs to use tsickle when it builds (so it could just be a dev dependency) and add this to tsconfig.json, in order to be compatible:
"angularCompilerOptions": {
...
"annotateForClosureCompiler": true
}
For example (at least in newer versions) when you create a library project with angular cli, it will add tsickle dependency automatically.
All the source code if fine, it's just a build process issue. Adding those 2 lines (package.json and tsconfig.json) should make it compatible.
from ng-trim-value-accessor.
Thanks for the comment. Would you mind creating a PR for it?
from ng-trim-value-accessor.
Related Issues (20)
- touched broken for matInput HOT 3
- TypeError: Class constructor DefaultValueAccessor cannot be invoked without 'new' HOT 7
- inputs(except those whose type is password) are always untouched HOT 2
- Email inputs are not updated
- doesn't work when an input has [readonly]="condition" data-binding HOT 5
- bound value not set
- I get "More than one custom value accessor matches form control with unspecified name attribute" HOT 1
- why at the end of the apostrophe?
- core.js:1598 ERROR Error: Uncaught (in promise): Error: More than one custom value accessor matches form control with unspecified name attribute HOT 1
- Unable to use [(ngModel)] in mat-autocomplete when ng-trim-value-accessor is used HOT 1
- Does not work with Ivy HOT 2
- not support in Angular 8 HOT 4
- Add forRoot Method to TrimValueAccessorModule HOT 5
- Trim should not be applied to input type number HOT 1
- Apply trimmed value on blur HOT 5
- ng build --prod fails with `...src/trim-value-accessor.ts has no selector, please add it!` HOT 1
- Error: More than one custom value accessor
- Provide an op-out option
- Does not run with Angular 5 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-trim-value-accessor.