Skip to content

does not work with vue3 #428

Open
Open
@u007

Description

@u007

Make sure to check the demo app(s) for sample usage

generic starter template with material text field

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital
letter.

Which platform(s) does your issue occur on?

  • iOS/Android/Both : android (should be both)
  • iOS/Android versions: android 13
  • emulator or device. What type of device? android emulator from android studio

Please, provide the following version numbers that your issue occurs with:

  • CLI: (run tns --version to fetch it): 8.4.0
  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/@nativescript/core/package.json file in your project): "version": "8.4.3",
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project)
{
  "name": "app",
  "main": "src/app.ts",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@nativescript-community/ui-material-textfield": "^7.0.34",
    "@nativescript/core": "~8.4.3",
    "nativescript-vue": "3.0.0-beta.5",
  },
  "devDependencies": {
    "@nativescript/android": "8.4.0",
    "@nativescript/tailwind": "^2.0.1",
    "@nativescript/types": "~8.4.0",
    "@nativescript/webpack": "~5.0.12",
    "@types/node": "~18.11.18",
    "tailwindcss": "^3.2.4",
    "typescript": "~4.9.4",
    "vue": "^3.2.45"
  }
}

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

create a vue3 native project from base template.

in app.ts```
import { createApp } from 'nativescript-vue';
import Home from './components/Home.vue';
import TextFieldPlugin from '@nativescript-community/ui-material-textfield/vue';

const app = createApp(Home)
app.use(TextFieldPlugin);

app.start();


inside the page component```
<template>
<StackLayout class="px-4">
      <Image src="~/imgs/logo.png" height="80" class="mb-2" />
      <Label text="Hello again!" class="text-center text-lg" />

      <MDTextField v-model="username" hint="login id" />

      <StackLayout class="hr-light mb-2"></StackLayout>

    </StackLayout>
</template>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions