Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile time error when EventEmitter type contains a period (static analysis error?) #1352

Closed
snaptopixel opened this issue Jan 31, 2019 · 1 comment
Labels

Comments

@snaptopixel
Copy link
Contributor

Stencil version:

 @stencil/[email protected]<version>

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
I'm using ambient type declarations with namespaces like myComponent.SomeType in my stencil lib. Works great, but the second I do this: EventEmitter<myComponent.SomeType> I get a cryptic error when compiling:

[ ERROR ]  /path/to/my-component.tsx
           Cannot read property 'toString' of undefined

The problem goes away when there is no period, if I do something like:

type SomeType = myComponent.SomeType;
// Omitted code
@Event() foo: EventEmitter<SomeType>;

Expected behavior:
If it is valid TypeScript it works with Stencil

@christian-bromann
Copy link
Member

This has been released with Stencil 🚞 v4.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants