nativescript-community / nativescript-community/ui-canvas

ui-svg (imported as 'zeroLength') was not found in '@nativescript/core'

Open
#42 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
38
Forks
9
PR merge metrics
No merged PRs in 30d

Description

I have installed 0.1.2 version for ui-svg library and nativescript core 8.4.4.

Application is compiling and rendering SVGs, I don't see any problems with it, but during compilation I always see the next Warning

WARNING in ./node_modules/@nativescript-community/ui-svg/index.common.js 42:19-29 export 'zeroLength' (imported as 'zeroLength') was not found in '@nativescript/core' (possible exports: AbsoluteLayout, AccessibilityEvents, AccessibilityLiveRegion, AccessibilityRole, AccessibilityState, AccessibilityTrait, ActionBar, ActionItem, ActionItems, ActivityIndicator, AndroidApplication, Animation, AnimationCurve, Application, ApplicationSettings, Background, Binding, Builder, Button, CSSHelper, CSSType, CSSUtils, ChangeType, CoercibleProperty, Color, Connectivity, ContainerView, ContentView, ControlStateChangeListener, CoreTypes, CssAnimationParser, CssAnimationProperty, CssProperty, CustomLayoutView, DatePicker, Device, DialogStrings, Dialogs, DockLayout, EditableTextBase, Enums, File, FileSystemEntity, FlexboxLayout, Folder, Font, FontScaleCategory, FontStyle, FontVariationSettings, FontWeight, FormattedString, Frame, GestureEvents, GestureStateTypes, GestureTypes, GesturesObserver, GridLayout, GridUnitType, HtmlView, Http, IOSHelper, Image, ImageAsset, ImageCache, ImageSource, InheritedCssProperty, InheritedProperty, ItemSpec, KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo, Label, LayoutBase, Length, ListPicker, ListView, ModuleNameResolver, NavigationButton, Observable, ObservableArray, Page, PageBase, ParserEvent, ParserEventType, PercentLength, Placeholder, Progress, Property, ProxyViewContainer, PseudoClassHandler, Repeater, RootLayout, Screen, ScrollView, SearchBar, SegmentedBar, SegmentedBarItem, ShorthandProperty, Slider, Span, StackLayout, Style, SwipeDirection, Switch, TabView, TabViewItem, TextBase, TextField, TextView, TimePicker, TouchAction, TouchManager, Trace, Transition, Utils, View, ViewBase, ViewHelper, VirtualArray, WebView, WrapLayout, WrappedValue, XmlParser, _setResolver, action, addTaggedAdditionalCSS, addWeakEventListener, alert, androidDynamicElevationOffsetProperty, androidElevationProperty, animationTimingFunctionConverter, autocapitalizationTypeProperty, autocorrectProperty, autofillTypeProperty, backgroundColorProperty, backgroundImageProperty, backgroundInternalProperty, backgroundPositionProperty, backgroundRepeatProperty, backgroundSizeProperty, booleanConverter, borderBottomColorProperty, borderBottomLeftRadiusProperty, borderBottomRightRadiusProperty, borderBottomWidthProperty, borderLeftColorProperty, borderLeftWidthProperty, borderRightColorProperty, borderRightWidthProperty, borderTopColorProperty, borderTopLeftRadiusProperty, borderTopRightRadiusProperty, borderTopWidthProperty, capitalizationType, clipPathProperty, colorProperty, confirm, dismissKeyboardTimeoutId, eachDescendant, editableProperty, encoding, fontFamilyProperty, fontInternalProperty, fontScaleProperty, fontSizeProperty, fontStyleProperty, fontVariationSettingsProperty, fontWeightProperty, fromObject, fromObjectRecursive, getAncestor, getCurrentPage, getFileAccess, getRootLayout, getTransformedText, getViewById, heightProperty, hintProperty, horizontalAlignmentProperty, iOSApplication, inputType, isAndroid, isIOS, isUserInteractionEnabledProperty, keyboardTypeProperty, knownFolders, letterSpacingProperty, lineHeightProperty, login, makeParser, makeValidator, marginBottomProperty, marginLeftProperty, marginRightProperty, marginTopProperty, maxLengthProperty, minHeightProperty, minWidthProperty, opacityProperty, paddingBottomProperty, paddingLeftProperty, paddingRightProperty, paddingTopProperty, parseCSSShadow, parseKeyframeDeclarations, path, perspectiveProperty, placeholderColorProperty, platformNames, profile, profilingDisable, profilingDumpProfiles, profilingEnable, profilingIsRunning, profilingResetProfiles, profilingStart, profilingStartCPU, profilingStop, profilingStopCPU, profilingTime, profilingUptime, prompt, removeTaggedAdditionalCSS, removeWeakEventListener, resolveFileNameFromUrl, returnKeyTypeProperty, rotateProperty, rotateXProperty, rotateYProperty, sanitizeModuleName, scaleXProperty, scaleYProperty, setActivityCallbacks, textAlignmentProperty, textDecorationProperty, textShadowProperty, textTransformProperty, timeConverter, transformConverter, translateXProperty, translateYProperty, unsetValue, updateTextTriggerProperty, verticalAlignmentProperty, visibilityProperty, whiteSpaceProperty, widthProperty, zIndexProperty) @ ./node_modules/@nativescript-community/ui-svg/index.android.js 2:0-105 3:0-43 3:0-43 48:25-32 174:86-104 323:29-40 334:5-26 @ ./node_modules/@nativescript-community/ui-svg/vue/index.js 1:0-45 4:47-56 5:45-52 6:42-45 @ ./app/main.js 24:0-59 25:8-17

My dependencies

"dependencies": { "@nativescript-community/ui-material-bottomsheet": "^7.0.34", "@nativescript-community/ui-material-button": "7.0.34", "@nativescript-community/ui-material-ripple": "7.0.34", "@nativescript-community/ui-svg": "^0.1.2", "@nativescript/camera": "^5.0.15", "@nativescript/core": "8.4.4", "@nativescript/firebase": "^11.1.3", "@nstudio/nativescript-pulltorefresh": "^3.0.2", "@triniwiz/nativescript-socketio": "^4.0.3", "axios": "^0.18.0", "nativescript-permissions": "^1.3.6", "nativescript-vue": "^2.9.3", "vuex": "^3.0.1" }, "devDependencies": { "@babel/core": "^7.8.3", "@babel/preset-env": "^7.8.3", "@nativescript/android": "~8.4.0", "@nativescript/ios": "8.4.0", "@nativescript/webpack": "~5.0.0", "babel-loader": "^8.0.6", "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", "lazy": "1.0.11", "nativescript": "^8.4.0", "nativescript-vue-template-compiler": "^2.0.0", "sass": "~1.49.9", "vue-loader": "^15.8.3" },

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking the warning path in node_modules/@nativescript-community/ui-svg/index.common.js and its imports from @nativescript/core, then trace the references through index.android.js and app/main.js. Reproduce the build with the reported @nativescript/core 8.4.4 and ui-svg 0.1.2 versions; done means the compatibility issue and expected warning outcome are documented or resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.