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 known component for element Pager. Plugin doesn't work. #148

Closed
Mikkou opened this issue Oct 27, 2019 · 0 comments
Closed

No known component for element Pager. Plugin doesn't work. #148

Mikkou opened this issue Oct 27, 2019 · 0 comments

Comments

@Mikkou
Copy link
Contributor

Mikkou commented Oct 27, 2019

Hello
I tried to use your package in my app, but it doesn't work.

  1. I added in package.json
  2. wrote this 2 lines of code in my app.js
import Pager from 'nativescript-pager/vue'
Vue.use(Pager)
  1. put the static vye code inside of template>StackLayout
<Pager height="100%" :selectedIndex="1">
          <PagerItem backgroundColor="red"> <label text="First"></label> </PagerItem>
          <PagerItem backgroundColor="white"> <label text="Second"></label> </PagerItem>
          <PagerItem backgroundColor="black">
            <label text="Third" color="white"></label>
          </PagerItem>
          <PagerItem backgroundColor="green"> <label text="Fourth"></label> </PagerItem>
        </Pager>

and got this error:
image

info:

  • iOS
  • 12.4.1 version
  • device iPhone 6
  • tns --version 6.1.2
"nativescript": {
        "id": "org.nativescript.playvue",
        "tns-android": {
            "version": "6.0.0"
        },
        "tns-ios": {
            "version": "6.0.1"
        }
    }
"dependencies": {
        "@nstudio/nativescript-cardview": "^1.0.0",
        "@progress-nativechat/nativescript-nativechat": "2.0.4",
        "kinvey-nativescript-sdk": "4.2.1",
        "nativescript-accelerometer": "2.0.1",
        "nativescript-background-http": "3.4.0",
        "nativescript-camera": "4.5.0",
        "nativescript-image": "2.1.4",
        "nativescript-imagepicker": "^7.1.0",
        "nativescript-intl": "3.0.0",
        "nativescript-iqkeyboardmanager": "1.5.1",
        "nativescript-pager": "^11.0.10",
        "nativescript-social-share": "1.5.2",
        "nativescript-theme-core": "1.0.6",
        "nativescript-ui-autocomplete": "5.0.0",
        "nativescript-ui-calendar": "5.0.0",
        "nativescript-ui-chart": "^6.0.0",
        "nativescript-ui-dataform": "5.0.0",
        "nativescript-ui-gauge": "5.0.0",
        "nativescript-ui-listview": "7.0.0",
        "nativescript-ui-sidedrawer": "7.0.0",
        "nativescript-vue": "2.3.0",
        "tns-core-modules": "6.0.1"
    },
    "devDependencies": {
        "@babel/core": "7.5.4",
        "@babel/preset-env": "^7.0.0",
        "babel-loader": "^8.0.2",
        "babel-traverse": "6.26.0",
        "babel-types": "6.26.0",
        "babylon": "6.18.0",
        "clean-webpack-plugin": "^0.1.19",
        "copy-webpack-plugin": "^4.5.2",
        "css-hot-loader": "^1.4.2",
        "css-loader": "^1.0.0",
        "lazy": "1.0.11",
        "mini-css-extract-plugin": "^0.4.1",
        "nativescript-dev-webpack": "~1.0.3",
        "nativescript-vue-template-compiler": "^2.0.0-alpha.3",
        "nativescript-worker-loader": "~0.9.0",
        "node-sass": "^4.9.2",
        "sass-loader": "^7.1.0",
        "uglifyjs-webpack-plugin": "~1.2.7",
        "vue-loader": "^15.2.6",
        "webpack": "^4.16.4",
        "webpack-bundle-analyzer": "~2.13.1",
        "webpack-cli": "^3.1.0"
    }

tns-core-modules@6.0.1

white-mobile.zip

@Mikkou Mikkou changed the title No known component for element Pager. Plugin doesn'y work. No known component for element Pager. Plugin doesn't work. Oct 27, 2019
@triniwiz triniwiz mentioned this issue Feb 22, 2020
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