Skip to content

[@type/ember bug] handlebars declare conflict #566

Closed
@xg-wang

Description

@xg-wang

Which package(s) does this problem pertain to?

  • @types/ember
  • @types/ember__string

Since handlebars@4.1.0 the types field is added in its package.json, so I'm hitting this issue after a yarn upgrade:

node_modules/handlebars/lib/handlebars.d.ts:14:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: Template, escapeExpression, logger, templates, helpers, partials, decorators, SafeString, Visitor, HandlebarsTemplateDelegate, RuntimeOptions, Utils, Handlebars

14 declare namespace Handlebars {
   ~~~~~~~

  node_modules/@types/handlebars/index.d.ts:7:1
    7 declare namespace Handlebars {
      ~~~~~~~
    Conflicts are in this file.

node_modules/@types/handlebars/index.d.ts:7:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: Template, escapeExpression, logger, templates, helpers, partials, decorators, SafeString, Visitor, HandlebarsTemplateDelegate, RuntimeOptions, Utils, Handlebars

7 declare namespace Handlebars {
  ~~~~~~~

  node_modules/handlebars/lib/handlebars.d.ts:14:1
    14 declare namespace Handlebars {
       ~~~~~~~
    Conflicts are in this file.

node_modules/@types/handlebars/index.d.ts:35:9 - error TS2374: Duplicate string index signature.

35         [key: string]: HelperDelegate;
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/handlebars/index.d.ts:155:5 - error TS2374: Duplicate string index signature.

155     [index: string]: HandlebarsTemplateDelegate;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions