Nativescript-vue: Typescript uninspect arg in confim() function

Created on 6 Jun 2019  路  5Comments  路  Source: nativescript-vue/nativescript-vue

Version

2.0.0

Reproduction link

https://play.nativescript.org/?template=play-vue&id=55NFPr

Platform and OS info

android

Steps to reproduce

Is just an error that the typescript expects a string but receive an object, don't trigger an error in the app just appoint a syntax error.
```
confirm({
title: ''"
})

What is expected?

Dont't show syntax errors in vscode

What is actually happening?

Show syntax errors in vscode and in console too.


Check in a local setup

normal

All 5 comments

Extra informations:

These errors are also causing trouble in tns build android.
The command doesn't work because of they and webpack exit the console with code 2
I just could make the command work converting all Typescript code to a normal Javascript code.

@zzhenryquezz When we create the project using the Javascript configuration, the build system expects a JS code in all the app, so mixing JS and TS code is not supported.

If you want to use TS code in your app, I suggest you to create the NS-Vue app using the vue-cli template like this:

vue init nativescript-vue/vue-cli-template <project-name>

And select the Typescript language. Then you can use TS code in your Vue components.

@zzhenryquezz I will close this issue but let me see if there is a problem using the vue-cli-template and TS.

Well i used the cli to make the project and i also choose the typescript option, but i don't see in this project for a while so i will check again and see if the error is still happening.

We are locking this issue because it has been closed for more than 14 days.

If the issue comes up again please open a new issue with additional details.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sjoerd picture Sjoerd  路  3Comments

farfromrefug picture farfromrefug  路  5Comments

Fabiyo-90 picture Fabiyo-90  路  6Comments

Tronix117 picture Tronix117  路  3Comments

tralves picture tralves  路  4Comments