# First ionic app: TypeScript error TS1005 on node module

**URL:** <https://forum.ionicframework.com/t/first-ionic-app-typescript-error-ts1005-on-node-module/185876>\
**Category:** Ionic Framework\
**Created:** [March 26, 2020, 12:14am UTC](https://forum.ionicframework.com/t/first-ionic-app-typescript-error-ts1005-on-node-module/185876 "2020-03-26T00:14:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxionionic](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@maxionionic](https://forum.ionicframework.com/u/maxionionic)\
**Post date:** [March 26, 2020, 12:14am UTC](https://forum.ionicframework.com/t/first-ionic-app-typescript-error-ts1005-on-node-module/185876/1 "2020-03-26T00:14:23Z")

</div>

I’ve just installed ionic and at the very first try to run “ionic serve” on an empty project I get this error:

TypeScript error in /node\_modules/@types/testing-library\_\_react/node\_modules/pretty-format/build/index.d.ts(7,13): [react-scripts] ‘=’ expected. TS1005

I think is related to some version problem (any node specific version is needed?)… but some help will be welcome!

**I have node v10.16.3**

**Solution: udpate typescript version on package.json (-\>3.8.3) and then run “ionic repair” to apply the change** Thanks guys!!

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [March 26, 2020, 2:39am UTC](https://forum.ionicframework.com/t/first-ionic-app-typescript-error-ts1005-on-node-module/185876/2 "2020-03-26T02:39:28Z")

</div>

> <https://github.com/facebook/create-react-app/issues/8716>
>
> Describe the bug
> I was trying to create a new react app using typescript, but I ran into an issue when trying...

---

<div class="post-metadata">

**Author:** ![pranabshenoy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/pranabshenoy/32/131350_2.png) [@pranabshenoy](https://forum.ionicframework.com/u/pranabshenoy)\
**Post date:** [March 26, 2020, 2:51am UTC](https://forum.ionicframework.com/t/first-ionic-app-typescript-error-ts1005-on-node-module/185876/3 "2020-03-26T02:51:47Z")

</div>

@maxionionic I changed “typescript” to “3.8.3” in the package.json file. With this I was able to get ionic serve to work.

---

<div class="post-metadata">

**Author:** ![mnbattaglia](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mnbattaglia](https://forum.ionicframework.com/u/mnbattaglia)\
**Post date:** [March 26, 2020, 2:52am UTC](https://forum.ionicframework.com/t/first-ionic-app-typescript-error-ts1005-on-node-module/185876/4 "2020-03-26T02:52:05Z")

</div>

Same problem here. I’ve just install ionic cli and created a blank react app. As suggested, updating TS to 3.8.3 did the trick

---

<div class="post-metadata">

**Author:** ![sdubey01](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sdubey01/32/131355_2.png) [@sdubey01](https://forum.ionicframework.com/u/sdubey01)\
**Post date:** [March 26, 2020, 4:38am UTC](https://forum.ionicframework.com/t/first-ionic-app-typescript-error-ts1005-on-node-module/185876/5 "2020-03-26T04:38:43Z")

</div>

Chiming in with a 3rd vote to update your Typescript to 3.8.3 to resolve this issue. Took a few minutes of a Google search to land here, and far less time to fix the issue.

---

<div class="post-metadata">

**Author:** ![mtashrif](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mtashrif](https://forum.ionicframework.com/u/mtashrif)\
**Post date:** [March 26, 2020, 10:37am UTC](https://forum.ionicframework.com/t/first-ionic-app-typescript-error-ts1005-on-node-module/185876/6 "2020-03-26T10:37:57Z")

</div>

Hi aaron,  
I have already installed typescipt 3.8.3  
But when I create a new project the package.json still shows the told version  
{

“name”: “myProject”,

“version”: “0.0.1”,

“private”: true,

“dependencies”: {

```
"@ionic/react": "^5.0.0",

"@ionic/react-router": "^5.0.0",

"@testing-library/jest-dom": "^4.2.4",

"@testing-library/react": "^9.4.0",

"@testing-library/user-event": "^8.0.3",

"@types/jest": "^24.0.25",

"@types/node": "^12.12.24",

"@types/react": "^16.9.17",

"@types/react-dom": "^16.9.4",

"@types/react-router": "^5.1.4",

"@types/react-router-dom": "^5.1.3",

"ionicons": "^5.0.0",

"react": "^16.12.0",

"react-dom": "^16.12.0",

"react-router": "^5.1.2",

"react-router-dom": "^5.1.2",

"react-scripts": "3.4.0",

"typescript": "3.7.4"

```

}  
if i change the typescipt here as 3.8.3 it still gives me the same error.

Can you guide me stepwise how to update the typescript ?

Thanks

---

<div class="post-metadata">

**Author:** ![pranabshenoy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/pranabshenoy/32/131350_2.png) [@pranabshenoy](https://forum.ionicframework.com/u/pranabshenoy)\
**Post date:** [March 26, 2020, 11:43am UTC](https://forum.ionicframework.com/t/first-ionic-app-typescript-error-ts1005-on-node-module/185876/7 "2020-03-26T11:43:42Z")

</div>

@mtashrif after you updates the package.json, run the ‘npm install’ command in the myProject folder.
