# Troubleshooting

## # 1

src/loaders/expressLoader.ts(161.39): error T52339: error property 'listen' does not exist on type 'Application'

#### solution:

fix by upgrading typescript version

## # 2

Error \[ERR\_PACKAGE\_PATH\_NOT\_EXPORTED]: Package subpath './index' is not defined by "exports"&#x20;

#### solution:

<mark style="color:green;">**Then, check if you are using node version below <14.15. If yes, then upgrade it to 14.15 or 14.17**</mark>

## # 3

node\_modules/@types/passport/index.d.ts:33:20 33 logout(done: (err: any) => void): void; \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~ An argument for 'done' was not provided.

#### solution:

<mark style="color:green;">**Give the following command:**</mark>

<mark style="color:green;">**npm install @types/passport\@1.0.0 --save**</mark>

<mark style="color:green;">**Then,**</mark>

<mark style="color:green;">**Install it and one again try with npm run build**</mark>

## # 4

Found 7 errors in 7 files.

Errors Files 1 src/database/seeds/CreateEmailTemplate.ts:2 1&#x20;

#### solution:

<mark style="color:green;">**Give this following command:**</mark>

<mark style="color:green;">**npm install typeorm-seeding\@1.0.0-beta.6 --save**</mark>

<mark style="color:green;">**Then,**</mark>&#x20;

<mark style="color:green;">**Install it and once again try with npm run build**</mark>&#x20;

## # 5

```
<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x150f275dbe1d]
    1: StubFrame [pc: 0x150f275dd1df]
```

#### solution:

<mark style="color:green;">**Give the following command:**</mark>

<mark style="color:green;">**npm install typescript\@3.7.2**</mark>

&#x20;<mark style="color:green;">**npm run build**</mark>

## # 6

./node\_modules/ng2-ckeditor/fesm2015/ng2-ckeditor.mjs - Error: Module build failed (from ./node\_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js): TypeError: Cannot create property 'message' on string '/home/piccosoft/spurt-4.7-release/spurtcommerce-

#### solution:

npm install ng2-ckeditor\@1.2.1 --save

\#7

INVOICE DOWNLOAD ERRORS

Run the below command

```
sudo apt-get install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spurtcommerce.com/api-deployment-and-setup/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
