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"
solution:
Then, check if you are using node version below <14.15. If yes, then upgrade it to 14.15 or 14.17
# 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:
Give the following command:
npm install @types/passport@1.0.0 --save
Then,
Install it and one again try with npm run build
# 4
Found 7 errors in 7 files.
Errors Files 1 src/database/seeds/CreateEmailTemplate.ts:2 1
solution:
Give this following command:
npm install typeorm-seeding@1.0.0-beta.6 --save
Then,
Install it and once again try with npm run build
# 5
solution:
Give the following command:
npm install typescript@3.7.2
npm run build
# 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
Last updated