glimmerjs / glimmer-web-component

Library to boot up your Glimmer components as Web Components
https://glimmerjs.com/guides/using-glimmer-as-web-components
MIT License
30 stars 11 forks source link

Type mismatch for `initializeCustomElements` #9

Closed locks closed 7 years ago

locks commented 7 years ago
⠋ Building/src/index.ts(21,26): Argument of type 'App' is not assignable to parameter of type 'Application'.
  Types of property 'env' are incompatible.
    Type 'Environment' is not assignable to type 'Environment'. Two different types with this name exist, but they are unrelated.
      Types have separate declarations of a private property 'helpers'.
/src/index.ts(22,26): Argument of type 'App' is not assignable to parameter of type 'Application'.
pittst3r commented 7 years ago

I have not yet been able to figure out a solution to this. The problem is that initializeCustomElements gets the Application type from node_modules/@glimmer/web-component/node_modules/@glimmer/application but when you use initializeCustomElements and pass in an instance of Application the type comes from node_modules/@glimmer/application.

pittst3r commented 7 years ago

@dgeb @tomdale Either of you know how to solve the above problem? I'm not quite sure what to do and pretty surprised I have not run into it sooner. It makes me think I've done something stupid.

locks commented 7 years ago

Fixed!