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

No pos property since 3.0.2 #16

Closed
Pii2 opened this issue Nov 12, 2021 · 7 comments
Closed

No pos property since 3.0.2 #16

Pii2 opened this issue Nov 12, 2021 · 7 comments

Comments

@Pii2
Copy link

Pii2 commented Nov 12, 2021

Hi,
I have updated to the latest version.
According to the doku I can update a polygon with pos.x.

But my IDE tells me that this property is not present.
image

@Prozi
Copy link
Owner

Prozi commented Nov 13, 2021 via email

@Prozi
Copy link
Owner

Prozi commented Nov 13, 2021 via email

@Pii2
Copy link
Author

Pii2 commented Nov 13, 2021

Hi,

I have tried with the latest version 3.0.7.

I import it like this:

import {Polygon, System} from 'detect-collisions';

These are my only options:

image

regards

@Prozi
Copy link
Owner

Prozi commented Nov 13, 2021 via email

@Prozi
Copy link
Owner

Prozi commented Nov 13, 2021

you can also try to install @types/sat and see if that helps

@Pii2
Copy link
Author

Pii2 commented Nov 14, 2021

Hi thanks for the replay!

I was able to solve the Problem by adding the following line to my tsconfig.json

"allowSyntheticDefaultImports": true,

Thanks anyway and by the way, great library!

@Pii2 Pii2 closed this as completed Nov 14, 2021
@Prozi
Copy link
Owner

Prozi commented Nov 14, 2021 via email

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