liuy97 / md2 Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Angular 8 shows this error when compiling a project that uses your library:
ERROR in ./node_modules/angular-md2/fesm2015/angular-md2.js 293:79-87
"export 'DOCUMENT' was not found in '@angular/platform-browser'
ℹ 「wdm」: Failed to compile.
The problem is that DOCUMENT
has to be imported from @angular/common
instead from @angular/platform-browser
.
I have created a PR to address the issue: #6
ERROR in node_modules/angular-md2/lib/core/option/optgroup.d.ts(4,51): error TS2307: Cannot find module 'projects/angular-md/src/lib/core/common-behaviors/constructor'.
node_modules/angular-md2/lib/core/option/optgroup.d.ts(8,22): error TS2420: Class 'MdOptgroup' incorrectly implements interface 'CanDisable'.
Property 'disabled' is missing in type 'MdOptgroup'.
node_modules/angular-md2/lib/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts(9,52): error TS2307: Cannot find module 'projects/angular-md/src/lib/core/common-behaviors/constructor'.
node_modules/angular-md2/lib/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts(21,22): error TS2420: Class 'MdPseudoCheckbox' incorrectly implements interface 'CanColor'.
Property 'color' is missing in type 'MdPseudoCheckbox'.
node_modules/angular-md2/lib/select/optgroup.d.ts(4,52): error TS2307: Cannot find module 'projects/angular-md/src/lib/core/common-behaviors/constructor'.
node_modules/angular-md2/lib/select/optgroup.d.ts(8,22): error TS2420: Class 'Md2Optgroup' incorrectly implements interface 'CanDisable'.
Property 'disabled' is missing in type 'Md2Optgroup'.
This error is present when ng build angular-md
command produces some
file: dist/angular-md/lib/core/select/optgroup.d.ts:
export declare const _Md2OptgroupMixinBase: import("projects/angular-md/src/lib/core/common-behaviors/constructor").Constructor<CanDisable> & typeof Md2OptgroupBase;
file: dist/angular-md/lib/core/option/optgroup.d.ts:
export declare const _MdOptgroupMixinBase: import("projects/angular-md/src/lib/core/common-behaviors/constructor").Constructor<CanDisable> & typeof MdOptgroupBase;
file: dist/angular-md/lib/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts:
export declare const _MdPseudoCheckboxBase: import("projects/angular-md/src/lib/core/common-behaviors/constructor").Constructor<CanColor> & typeof MdPseudoCheckboxBase;
file: dist/angular-md/lib/core/select/optgroup.d.ts:
export declare const _Md2OptgroupMixinBase: import("../core/common-behaviors/constructor").Constructor<CanDisable> & typeof Md2OptgroupBase;
file: dist/angular-md/lib/core/option/optgroup.d.ts:
export declare const _MdOptgroupMixinBase: import("../common-behaviors/constructor").Constructor<CanDisable> & typeof MdOptgroupBase;
file: dist/angular-md/lib/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts:
export declare const _MdPseudoCheckboxBase: import("../../common-behaviors/constructor").Constructor<CanColor> & typeof MdPseudoCheckboxBase;
We have upgraded our app (angular version 8) to v9-RC10 and we are getting following error in @angular Core.
as Error TS2724 Module '"../../../@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2' ?
import { EventEmitter, Elementref, OnDestory, Renderer, TemplateRef, ViewContainerRef } from '@angular/core'
node_modules/@angular/core/core.d.ts:5678:31
5678 export declare abstract class Renderer2 {
is there any alternative or solution for it ? do we have any release for Angular 9 in near future ?
on old md2 version of datepicker, when i used locale service
constructor(private loc: DateLocale)
i could change
this.loc.firstDayOfWeek = 1;
this is broken here. It only changes weekdays headers, but not _weeks array itself.
I suspect
Md2MonthView._weeks
which differs from original version
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.