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

Object.keys not response in the Ionic APP

$
0
0

I was using the Object.keys to push all my object’s key into the array, it test well in the browser ( Ionic serve --lab), but after ionic cordova build, Object.keys just return a empty array to me, and it seems very weird.

Screen Shot 2021-05-23 at 11.04.17 PM

As you can see the Object.keys only return an empty array which expect to return a two length array.

Even I use the for…in or Object.entires function, still no any return, so confused…

I don’t think this is the tsconfig.json problem because I had edit the lib property

"lib": ["es2018", "dom", "es2017.object"]

Can anyone help to figure out how to fixed this problem ?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



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