You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project will fail when running npm install, upgrading the versions of the dependencies will resolve this.
The after dependecies are installed, the project will fail to build with the following error:
npm run build
> [email protected] build
> tsc
src/api/delete-product.ts:45:91 - error TS2345: Argument of type '[unknown]' is not assignable to parameter of type 'LogItemExtraInput'.
Type '[unknown]' is not assignable to type '[string | Error]'.
Type 'unknown' is not assignable to type 'string | Error'.
45 logger.error('Unexpected error occurred while trying to delete product with ID '+ id, error);
~~~~~
src/api/get-product.ts:54:82 - error TS2345: Argument of type '[unknown]' is not assignable to parameter of type 'LogItemExtraInput'.
Type '[unknown]' is not assignable to type '[string | Error]'.
Type 'unknown' is not assignable to type 'string | Error'.
54 logger.error('Unexpected error occurred while trying to retrieve a product', error);
~~~~~
src/api/put-product.ts:4:25 - error TS2307: Cannot find module '../model/product' or its corresponding type declarations.
4 import { Product } from "../model/product";
~~~~~~~~~~~~~~~~~~
src/api/put-product.ts:51:80 - error TS2345: Argument of type '[unknown]' is not assignable to parameter of type 'LogItemExtraInput'.
Type '[unknown]' is not assignable to type '[string | Error]'.
Type 'unknown' is not assignable to type 'string | Error'.
51 logger.error('Unexpected error occurred while trying to create a product', error);
~~~~~
src/api/put-product.ts:86:80 - error TS2345: Argument of type '[unknown]' is not assignable to parameter of type 'LogItemExtraInput'.
Type '[unknown]' is not assignable to type '[string | Error]'.
Type 'unknown' is not assignable to type 'string | Error'.
86 logger.error('Unexpected error occurred while trying to create a product', error);
~~~~~
src/store/product-store.ts:3:25 - error TS2307: Cannot find module '../model/product' or its corresponding type declarations.
3 import { Product } from "../model/product";
~~~~~~~~~~~~~~~~~~
Found 6 errors in 4 files.
Errors Files
1 src/api/delete-product.ts:45
1 src/api/get-product.ts:54
3 src/api/put-product.ts:4
1 src/store/product-store.ts:3
The text was updated successfully, but these errors were encountered:
The project will fail when running
npm install
, upgrading the versions of the dependencies will resolve this.The after dependecies are installed, the project will fail to build with the following error:
The text was updated successfully, but these errors were encountered: