Closed ras-24 closed 4 months ago
looks like it doesnt support the typescript version on package.json anymore. https://github.com/DefinitelyTyped/DefinitelyTyped/issues/69932
looks like it doesnt support the typescript version on package.json anymore. DefinitelyTyped/DefinitelyTyped#69932
Getting back to previous version solved for me
How can i back to previous version?
How can i back to previous version?
In my case, i solved it by bumping typescript version to "typescript": "4.7.3" in the package.json file
An error appears during the initial installation at the
npm run build
stage. I use Windows 10 PC with Nodejs v14.21.3Steps I do :
git clone https://github.com/canove/whaticket-community.git
cd whaticket-community\backend
copy .env.example .env
.env
file like below :DB_DIALECT= DB_HOST=localhost DB_USER=root DB_PASS= DB_NAME=whaticket
JWT_SECRET=54616516516516851751651 JWT_REFRESH_SECRET=56126168175165161564165
E:\Programming\Javascript\whaticket-community\backend>npm run build
node_modules/@types/lodash/common/object.d.ts:1026:46 - error TS1005: '?' expected. 1026 : K extends
${infer N extends number}
? T[N] ~ node_modules/@types/lodash/common/object.d.ts:1031:46 - error TS1005: '?' expected. 1031 : K extends${infer N extends number}
? T[N] ~ node_modules/@types/lodash/common/object.d.ts:1041:46 - error TS1005: '?' expected. 1041 : K extends${infer N extends number}
~ Found 3 errors.npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! backend@1.0.0 build:
tsc
npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the backend@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ras\AppData\Roaming\npm-cache_logs\2024-06-27T22_47_56_412Z-debug.log