-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 CanvasWidget compilation error #559
Comments
In case anyone wonders, editing tsconfig to contain
|
There seems to be relative imports, which have a wrong level (2 times up, instead of 4 times up). Can hotfix this, but I prefer another more stable solution 😒 |
I'm seeing this second problem ( I've done some digging, and here's what I think is happening (some of this is speculative, I'm not really a Typescript expert):
I'm not 100% sure this is what's happening; it doesn't make any sense to me that it would matter whether the file is accessed via a symlink or not. I did some experiments and it seemed like that was how it was behaving, but I never quite reproduced exactly the same scenario, so I might have just been hitting some other edge case in Typescript. There are some issues on the Typescript repo (e.g. this one) that look like they might be related. I experimented with manually patching my The good news is that it looks to me like the problem might just go away if Is it simple enough to upgrade to Typescript 3.9 in this repo, or do we risk breaking backward compatibility for library users? |
Sadly my comment about Typescript 3.9 fixing this was a complete red herring, I was comparing the wrong file. It turns out Typescript 3.9 doesn't fix this at all. |
There's a bug in react-diagrams: projectstorm/react-diagrams#559 that causes an unavoidable Typescript error in all libraries that build it. I don't see a good solution without making changes within Typescript, so for the time being I'm going to suppress this.
This problem seems to have been resolved for me as of the v6.4.2 release. Can anyone else confirm? |
I added the project with yarn and then get the following error message from ts:
I'm using typescript 3.7.5. Anyone a clue how to get around this?
The text was updated successfully, but these errors were encountered: