App Photo Gallery ionic + React import error: '__spreadArray' is not exported from 'tslib'

I followed the tutorial step by step and when I put it to run, it appeared

[react-scripts] ./node_modules/@ionic/core/dist/esm-es5/animation-096c6391.js
[react-scripts] Attempted import error: ‘__spreadArray’ is not exported from ‘tslib’.

2 Likes

I just started a new test project and get the same result. apparently one of the dependencies has an outdated version of the tslib.

__spreadArray was introduced on tslib 1.10.0 but a few dependencies are still on the 1.9.0 version.

3 Likes

Same thing here :frowning:

Tried ionic start myIonicReactApp blank --type react but you get the spreadArray error.

2 Likes

+1

Even with the Ionic wizard :mage:

1 Like

Same issue with Vue app.

2 Likes

Hey folks! Seems there were some changes in typescripts. We just pushed a new release that should address this issue.

5 Likes

Thanks, will check it now!