Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48977

Optional chaining and Nullish coalescing don't work with Typescript

$
0
0

Hello :slight_smile:

I am facing errors when i try to use ? or ?? operators with Ionic Vue (Typescript)
Examples:
user?.name
const value = test ?? ‘Default’

If i try it without lang=“ts” on script it works
Also those features works fine on Vue 3 project generated with vue cli.

Errors:
Module parse failed: Unexpected token

You may need an additional loader to handle the result of these loaders.

Best regards

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 48977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>