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

Cant import zeroLength #43

Open
ghost opened this issue Dec 19, 2022 · 4 comments
Open

Cant import zeroLength #43

ghost opened this issue Dec 19, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Dec 19, 2022

WARNING in ./node_modules/@nativescript-community/ui-svg/index.common.js 41:20-30
export 'zeroLength' (imported as 'zeroLength') was not found in '@nativescript/core'

Fix:

import { CoreTypes } from '../../core-types';

// ...

this.left = CoreTypes.zeroLength;
this.top = CoreTypes.zeroLength;
@farfromrefug
Copy link
Member

@striderwhitepderas this is not a fix. CoreTypes are only types not values.
Your issue seems to be your @nativescript/core version. Which version are you using?

@ghost
Copy link
Author

ghost commented Dec 21, 2022

@farfromrefug The only reason why I suggested this as a fix was because this is how other components are using zeroLength - by importing it from CoreTypes. If you're saying it's not a fix then I believe you, I do not know enough of this framework.

My Nativescript version is 8.3.3

@farfromrefug
Copy link
Member

@striderwhitepderas that s weird for other components to do it that way. Do you have an example?
Can you try upgrading to nativescript 8.4.x to see it if starts to work?
(even if it works i will try to make it work with 8.3.x)

@Woongsik
Copy link

@farfromrefug Hi, I have the same issue with NS 8.4.x but I can still run the application.
I am using CoreTypes for geolcation accuracy

"@nativescript/core": "~8.4.1",
"@nativescript/android": "~8.4.0",
"@nativescript/ios": "~8.4.0",
"@nativescript/types": "~8.4.0",

@farfromrefug farfromrefug transferred this issue from nativescript-community/ui-svg Jan 16, 2023
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