-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
does not work with vue3 #428
Comments
For vue3 you need register component in your import {createApp, registerElement} from 'nativescript-vue';
registerElement('MDTextField', () => require("@nativescript-community/ui-material-textfield").TextField, {
model: {
prop: 'text',
event: 'textChange'
}
}) |
hey bro, thank you, let me try 😄 |
just realised i tried this long ago and didnt work, got this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
Please, provide the following version numbers that your issue occurs with:
tns --version
to fetch it): 8.4.0node_modules/@nativescript/core/package.json
file in your project): "version": "8.4.3","tns-android"
and"tns-ios"
properties in thepackage.json
file of your project)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();
The text was updated successfully, but these errors were encountered: