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

Typescript Error for BaseLayer #670

Closed
sezginriggs opened this issue Jun 12, 2019 · 3 comments
Closed

Typescript Error for BaseLayer #670

sezginriggs opened this issue Jun 12, 2019 · 3 comments

Comments

@sezginriggs
Copy link

sezginriggs commented Jun 12, 2019

Hello,

I'm trying use Konva 3.3.3 with Ionic Framework 3.9.5 / Angular Core 5.2.9 / TypeScript 3.5.1 and I'm getting these errors while building for IOS simulator. Interesting part is sometimes it doesn't show this and screen with Konva seems working fine. But also when building for device, it always shows this error.

Could this be my mistake or is it related with Konva? Thank you for your help...

Simulator Screen Shot - iPhone 8 - 2019-06-13 at 01 53 04

@lavrton
Copy link
Member

lavrton commented Jun 13, 2019

That looks strange. Looks like typescript is trying to compile declarations as normal .ts file. I don't see what can we do here from Konva side.

@sezginriggs
Copy link
Author

sezginriggs commented Jun 13, 2019

@lavrton I don't know, the strangest part is when I change code and try to build for the first time, it works.. But with same code, second build occurs this error. Now this is blocking my development and I really really need help about this. May I provide any other information to help resolving this? Could this be related with RxJS or Angular?

Here are some issues about RxJS:
https://stackoverflow.com/questions/54434333/error-ts1005-expected-typescript-angular-6-for-first-build-error-rxjs-insi

ReactiveX/rxjs#4512

@sezginriggs
Copy link
Author

@lavrton After reading your answer and issues about RxJS, I've updated my project's TypeScript from 2.6.2 to 3.5.2 (latest version) and RxJS from 6.3.3 to 6.5.2.

And it seems it works as expected right now :) Thank you very much for your help!

@lavrton lavrton closed this as completed Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants