glimmerjs / glimmer-component

[MOVED] This package is now part of the Glimmer.js monorepo
https://github.com/glimmerjs/glimmer.js
51 stars 16 forks source link

Upgrading @glimmer packages to master breaks #9

Closed asakusuma closed 7 years ago

asakusuma commented 7 years ago

I believe the sudden influx of errors is probably due to the fact that the @glimmer declaration files were never properly resolved until now.

$ npm run build:tests

> @glimmer/component@0.2.0 build:tests /Users/akusuma/workspace/opensource/glimmerjs/glimmer-component
> rm -rf tests && BROCCOLI_ENV=tests broccoli build tests

Build project: @glimmer/component
Build env: tests
Build path: /Users/akusuma/workspace/opensource/glimmerjs/glimmer-component
/node_modules/@glimmer/compiler/node_modules/@glimmer/syntax/lib/traversal/errors.ts(4,70): Cannot find name 'Option'.
/node_modules/@glimmer/compiler/node_modules/@glimmer/syntax/lib/traversal/traverse.ts(68,25): Argument of type 'NodeHandler<Node>' is not assignable to parameter of type 'EnterExitNodeHandler<Node>'.
  Type 'NodeHandlerFunction<Node>' is not assignable to type 'EnterExitNodeHandler<Node>'.
    Property 'enter' is missing in type 'NodeHandlerFunction<Node>'.
/node_modules/@glimmer/compiler/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/compiler/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/compiler/node_modules/@glimmer/wire-format/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/compiler/node_modules/@glimmer/wire-format/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/interfaces/node_modules/@glimmer/wire-format/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/interfaces/node_modules/@glimmer/wire-format/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/object-reference/node_modules/@glimmer/reference/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/object-reference/node_modules/@glimmer/reference/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/object-reference/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/object-reference/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/reference/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/reference/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/runtime/lib/compiled/opcodes/builder.ts(16,8): Cannot find module '../../environment/constants'.
/node_modules/@glimmer/runtime/lib/environment.ts(4,27): Cannot find module './environment/constants'.
/node_modules/@glimmer/runtime/lib/opcodes.ts(5,27): Cannot find module './environment/constants'.
/node_modules/@glimmer/runtime/lib/vm/append.ts(20,8): Cannot find module '../environment/constants'.
/node_modules/@glimmer/runtime/lib/vm/update.ts(21,27): Cannot find module '../environment/constants'.
/node_modules/@glimmer/runtime/node_modules/@glimmer/interfaces/node_modules/@glimmer/wire-format/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/runtime/node_modules/@glimmer/interfaces/node_modules/@glimmer/wire-format/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/runtime/node_modules/@glimmer/reference/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/runtime/node_modules/@glimmer/reference/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/runtime/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/runtime/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/runtime/node_modules/@glimmer/wire-format/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/runtime/node_modules/@glimmer/wire-format/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/node_modules/@glimmer/wire-format/node_modules/@glimmer/util/lib/weakmap.ts(3,27): Cannot find name 'WeakMap'.
/node_modules/@glimmer/wire-format/node_modules/@glimmer/util/lib/weakmap.ts(6,22): Cannot find name 'WeakMap'.
/src/component-definition.ts(9,22): Class 'ComponentDefinition' incorrectly extends base class 'ComponentDefinition<Component>'.
  Types of property 'manager' are incompatible.
    Type 'ComponentManager' is not assignable to type 'ComponentManager<Component>'.
      Types of property 'prepareArgs' are incompatible.
        Type '(definition: ComponentDefinition, args: any) => any' is not assignable to type '(definition: ComponentDefinition<Component>, args: IArguments, dynamicScope: DynamicScope) => IAr...'.
          Types of parameters 'definition' and 'definition' are incompatible.
            Type 'ComponentDefinition<Component>' is not assignable to type 'ComponentDefinition'.
/src/component-definition.ts(16,17): Argument of type 'ComponentManager' is not assignable to parameter of type 'ComponentManager<Component>'.
/src/component-layout-compiler.ts(17,35): Argument of type 'string' is not assignable to parameter of type 'SerializedTemplateWithLazyBlock<TemplateMeta>'.
/src/component-manager.ts(7,3): Module '"/node_modules/@glimmer/runtime/index"' has no exported member 'CompiledBlock'.
/src/component-manager.ts(10,3): Module '"/node_modules/@glimmer/runtime/index"' has no exported member 'EvaluatedArgs'.
/src/component-manager.ts(28,3): Type 'PrimitiveReference<string>' is not assignable to type 'VersionedPathReference<string>'.
  Types of property 'get' are incompatible.
    Type '(_key: string) => PrimitiveReference<Value>' is not assignable to type '(property: string) => VersionedPathReference<Opaque>'.
      Type 'PrimitiveReference<Value>' is not assignable to type 'VersionedPathReference<Opaque>'.
        Types of property 'tag' are incompatible.
          Type 'TagWrapper<RevisionTag>' is not assignable to type 'TagWrapper<RevisionTag>'. Two different types with this name exist, but they are unrelated.
            Types have separate declarations of a private property 'type'.
/src/component-manager.ts(31,22): Class 'ComponentManager' incorrectly implements interface 'ComponentManager<Component>'.
  Types of property 'prepareArgs' are incompatible.
    Type '(definition: ComponentDefinition, args: any) => any' is not assignable to type '(definition: ComponentDefinition<Component>, args: IArguments, dynamicScope: DynamicScope) => IAr...'.
      Types of parameters 'definition' and 'definition' are incompatible.
        Type 'ComponentDefinition<Component>' is not assignable to type 'ComponentDefinition'.
          Types of property 'manager' are incompatible.
            Type 'ComponentManager<Component>' is not assignable to type 'ComponentManager'.
              Property 'env' is missing in type 'ComponentManager<Component>'.
/src/component-manager.ts(64,16): Property 'compiledLayouts' does not exist on type 'Environment'.
/src/component-manager.ts(72,5): Type 'RootReference<Component>' is not assignable to type 'VersionedPathReference<Opaque>'.
  Types of property 'get' are incompatible.
    Type '<U>(prop: string) => VersionedPathReference<U>' is not assignable to type '(property: string) => VersionedPathReference<Opaque>'.
      Type 'VersionedPathReference<any>' is not assignable to type 'VersionedPathReference<Opaque>'.
        Types of property 'get' are incompatible.
          Type '(property: string) => VersionedPathReference<Opaque>' is not assignable to type '(property: string) => VersionedPathReference<Opaque>'. Two different types with this name exist, but they are unrelated.
            Type 'VersionedPathReference<Opaque>' is not assignable to type 'VersionedPathReference<Opaque>'. Two different types with this name exist, but they are unrelated.
              Types of property 'tag' are incompatible.
                Type 'TagWrapper<RevisionTag>' is not assignable to type 'TagWrapper<RevisionTag>'. Two different types with this name exist, but they are unrelated.
                  Types have separate declarations of a private property 'type'.
/test/rendering-test.ts(38,36): Argument of type 'string' is not assignable to parameter of type 'SerializedTemplateWithLazyBlock<TemplateMeta>'.
/test/test-helpers/compiler.ts(9,55): Generic type 'PrecompileOptions<T>' requires 1 type argument(s).
/test/test-helpers/dynamic-scope.ts(12,22): Class 'DynamicScope' incorrectly implements interface 'DynamicScope'.
  Types of property 'get' are incompatible.
    Type '(key: string) => VersionedPathReference<Opaque>' is not assignable to type '(key: string) => VersionedPathReference<Opaque>'. Two different types with this name exist, but they are unrelated.
      Type 'VersionedPathReference<Opaque>' is not assignable to type 'VersionedPathReference<Opaque>'. Two different types with this name exist, but they are unrelated.
        Types of property 'get' are incompatible.
          Type '(property: string) => VersionedPathReference<Opaque>' is not assignable to type '(property: string) => VersionedPathReference<Opaque>'. Two different types with this name exist, but they are unrelated.
            Type 'VersionedPathReference<Opaque>' is not assignable to type 'VersionedPathReference<Opaque>'. Two different types with this name exist, but they are unrelated.
/test/test-helpers/environment.ts(2,3): Module '"/node_modules/@glimmer/runtime/index"' has no exported member 'CompiledBlock'.
/test/test-helpers/environment.ts(7,3): Module '"/node_modules/@glimmer/runtime/index"' has no exported member 'EvaluatedArgs'.
/test/test-helpers/environment.ts(57,22): Class 'Environment' incorrectly extends base class 'Environment'.
  Types of property 'iterableFor' are incompatible.
    Type '(ref: VersionedReference<Opaque>, args: any) => AbstractIterable<Opaque, Opaque, IterationItem<Op...' is not assignable to type '(reference: VersionedReference<Opaque>, key: string) => AbstractIterable<Opaque, Opaque, Iteratio...'.
      Types of parameters 'ref' and 'reference' are incompatible.
        Type 'VersionedReference<Opaque>' is not assignable to type 'VersionedReference<Opaque>'. Two different types with this name exist, but they are unrelated.
          Types of property 'tag' are incompatible.
            Type 'TagWrapper<RevisionTag>' is not assignable to type 'TagWrapper<RevisionTag>'. Two different types with this name exist, but they are unrelated.
/test/test-helpers/environment.ts(60,45): Type '{}' does not satisfy the constraint 'TemplateMeta'.
  Property '"<template-meta>"' is missing in type '{}'.
/test/test-helpers/environment.ts(62,33): Namespace '"/node_modules/@glimmer/runtime/lib/dom/interfaces"' has no exported member 'HTMLAnchorElement'.
/test/test-helpers/environment.ts(74,90): Argument of type 'Document' is not assignable to parameter of type 'HTMLDocument'.
  Property 'addEventListener' is missing in type 'Document'.
/test/test-helpers/environment.ts(79,50): Argument of type 'this' is not assignable to parameter of type 'Environment'.
  Type 'Environment' is not assignable to type 'Environment'. Two different types with this name exist, but they are unrelated.
    Types of property 'iterableFor' are incompatible.
      Type '(ref: VersionedReference<Opaque>, args: any) => AbstractIterable<Opaque, Opaque, IterationItem<Op...' is not assignable to type '(reference: VersionedReference<Opaque>, key: string) => AbstractIterable<Opaque, Opaque, Iteratio...'.
/test/test-helpers/environment.ts(83,72): Namespace '"/node_modules/@glimmer/runtime/lib/dom/interfaces"' has no exported member 'HTMLAnchorElement'.
/test/test-helpers/environment.ts(179,5): Type 'Iterable' is not assignable to type 'AbstractIterable<Opaque, Opaque, IterationItem<Opaque, Opaque>, VersionedPathReference<Opaque>, V...'.
  Types of property 'tag' are incompatible.
    Type 'RevisionTag' is not assignable to type 'TagWrapper<RevisionTag>'.
/test/test-helpers/environment.ts(185,38): Argument of type 'this' is not assignable to parameter of type 'Environment'.
  Type 'Environment' is not assignable to type 'Environment'. Two different types with this name exist, but they are unrelated.
/test/test-helpers/iterable.ts(91,22): Class 'Iterable' incorrectly implements interface 'AbstractIterable<Opaque, Opaque, IterationItem<Opaque, Opaque>, RootReference<Opaque>, RootRefere...'.
  Types of property 'tag' are incompatible.
    Type 'RevisionTag' is not assignable to type 'TagWrapper<RevisionTag>'.
      Property 'type' is missing in type 'RevisionTag'.
/test/test-helpers/iterable.ts(91,106): Type 'RootReference<Opaque>' does not satisfy the constraint 'VersionedPathReference<Opaque>'.
  Types of property 'get' are incompatible.
    Type '<U>(prop: string) => VersionedPathReference<U>' is not assignable to type '(property: string) => VersionedPathReference<Opaque>'.
      Type 'VersionedPathReference<any>' is not assignable to type 'VersionedPathReference<Opaque>'.
asakusuma commented 7 years ago

Here's the diff: https://github.com/glimmerjs/glimmer-component/pull/8