Skip to content

index.d.ts breaks existing version  #857

Open
@devansvd

Description

@devansvd

I have ^0.5.14 version since package.json will automatically update to latest patch versions. I received v0.5.29 during npm install, It has typescript index.d.ts Breaks the existing versions of angular applications. Can this be considered as a feature change and bump the 0.6.x version ?

Had to manually remove the ^ before the 0.5.14 to fix the issue.

ERROR in ./node_modules/moment-timezone/index.d.ts (48,73): Cannot find name 'T'.
ERROR in ./src/app/advisor/advisor-information.component.ts (60,33): Property 'tz' does not exist on type 'Moment'.
ERROR in ./node_modules/moment-timezone/index.d.ts (47,92): ';' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (47,111): ';' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,27): ';' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,49): ')' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,71): Expression expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,74): ';' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,75): Declaration or statement expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,79): ';' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (49,32): ',' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (49,54): Expression expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (49,64): ';' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (50,20): ';' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (51,27): Expression expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (51,37): ';' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (53,29): Expression expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (53,38): ';' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (64,1): Declaration or statement expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (47,92): 'MomentZoneOffset' only refers to a type, but is being used as a value here.
ERROR in ./node_modules/moment-timezone/index.d.ts (47,113): Cannot find name 'never'.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,9): Cannot find name 'zonesForCountry'.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,25): Cannot find name 'T'.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,42): Cannot find name 'country'.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,51): Cannot find name 'string'.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,51): Left side of comma operator is unused and has no side effects.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,59): Cannot find name 'with_offset'.
ERROR in ./node_modules/moment-timezone/index.d.ts (47,77): ';' expected.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,77): Cannot find name 'T'.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,95): Cannot find name 'string'.
ERROR in ./node_modules/moment-timezone/index.d.ts (48,106): Cannot find name 'never'.
ERROR in ./node_modules/moment-timezone/index.d.ts (49,9): Cannot find name 'zonesForCountry'.
ERROR in ./node_modules/moment-timezone/index.d.ts (49,25): Cannot find name 'country'.
ERROR in ./node_modules/moment-timezone/index.d.ts (49,34): Cannot find name 'string'.
ERROR in ./node_modules/moment-timezone/index.d.ts (49,42): Cannot find name 'with_offset'.
ERROR in ./node_modules/moment-timezone/index.d.ts (49,56): Cannot find name 'boolean'.
ERROR in ./node_modules/moment-timezone/index.d.ts (49,66): 'MomentZoneOffset' only refers to a type, but is being used as a value here.
ERROR in ./node_modules/moment-timezone/index.d.ts (49,87): Cannot find name 'string'.
ERROR in ./node_modules/moment-timezone/index.d.ts (50,9): Cannot find name 'countries'.
ERROR in ./node_modules/moment-timezone/index.d.ts (50,22): Cannot find name 'string'.
ERROR in ./node_modules/moment-timezone/index.d.ts (51,9): Cannot find name 'guess'.
ERROR in ./node_modules/moment-timezone/index.d.ts (51,15): Cannot find name 'ignoreCache'.
ERROR in ./node_modules/moment-timezone/index.d.ts (51,29): Cannot find name 'boolean'.
ERROR in ./node_modules/moment-timezone/index.d.ts (51,39): Cannot find name 'string'.
ERROR in ./node_modules/moment-timezone/index.d.ts (53,9): Cannot find name 'setDefault'.
ERROR in ./node_modules/moment-timezone/index.d.ts (53,20): Cannot find name 'timezone'.
ERROR in ./node_modules/moment-timezone/index.d.ts (53,31): Cannot find name 'string'.
ERROR in ./node_modules/moment-timezone/index.d.ts (53,40): 'Moment' only refers to a type, but is being used as a value here.
ERROR in ./node_modules/moment-timezone/index.d.ts (63,15): Cannot find name 'MomentTimezone'.
ERROR in ./angular.component.ts (1139,33): Property 'tz' does not exist on type 'Moment'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions