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 svelte@3.19.1
├─┬ svelte-loader-hot@0.1.1
│ ├── svelte-dev-helper@1.1.9
│ └── svelte-hmr@0.1.3
├── svelte-native@0.7.3
├── svelte-native-preprocessor@0.1.6
❯ npm list | grep native
/home/sullivan/p/gitlab.com/soullivaneuh/native-svelte
├─┬ nativescript-dev-webpack@1.3.0
│ ├─┬ nativescript-hook@0.2.4
│ ├─┬ nativescript-worker-loader@0.9.5
├── nativescript-theme-core@2.0.24
├── svelte-native@0.7.3
├── svelte-native-preprocessor@0.1.6
│ └─┬ @nativescript/core@6.2.3
│   ├─┬ nativescript-hook@0.2.5
@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