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

segmentedBar: Cannot read property 'nativeViewProtected' of undefined #118

Closed
soullivaneuh opened this issue Feb 29, 2020 · 1 comment
Closed

Comments

@soullivaneuh
Copy link
Contributor

With the following page component:

<page>
  <actionBar title="Details" />
  <stackLayout class="p-20">
    <segmentedBar>
      <segmentedBarItem title="Test 1" />
      <segmentedBarItem title="Test 2" />
      <segmentedBarItem title="Test 3" />
    </segmentedBar>
  </stackLayout>
</page>

I have the following error on load:

Calling js method onCreateView failed
TypeError: Cannot read property 'nativeViewProtected' of undefined

StackTrace:
SegmentedBarItem.setupNativeView(file:///data/data/org.nativescript.preview/files/app/tns_modules/@nativescript/core/ui/segmented-bar/segmented-bar.js:80:41)

The setup is pretty basic. Maybe a version usage incompatibility? Here is my modules list:

❯ npm list | grep svelte                  
/home/sullivan/p/gitlab.com/soullivaneuh/native-svelte
├── UNMET PEER DEPENDENCY [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
❯ npm list | grep native
/home/sullivan/p/gitlab.com/soullivaneuh/native-svelte
├─┬ [email protected]
│ ├─┬ [email protected]
│ ├─┬ [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
│ └─┬ @nativescript/[email protected]
│   ├─┬ [email protected]
@halfnelson
Copy link
Owner

fix in svelte-native 0.8.0

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