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
I am able to run the 'npm install' okay but I keep getting errors when running the 'npm run build', and when I try and run 'npm run start' I can login and create the api key and it is saved but never get the 'Download Series' option I only get the initial Login/API menu.
I have installed NodeJS without issues and I am running on a WIndows 11 system. Here are the errors I mentioned above:
`
src/database/AccountDao.ts:29:9 - error TS2322: Type 'unknown' is not assignable to type 'User | undefined'.
29 return stmt.get(id)
~~~~~~~~~~~~~~~~~~~
src/database/AccountDao.ts:39:9 - error TS2322: Type 'unknown[]' is not assignable to type 'User[]'.
Type 'unknown' is not assignable to type 'User'.
39 return stmt.all()
~~~~~~~~~~~~~~~~~
src/database/ApiKeyDao.ts:28:9 - error TS2322: Type 'unknown' is not assignable to type 'ApiKey | undefined'.
28 return stmt.get(id)
~~~~~~~~~~~~~~~~~~~
src/database/ApiKeyDao.ts:33:9 - error TS2322: Type 'unknown[]' is not assignable to type 'ApiKey[]'.
Type 'unknown' is not assignable to type 'ApiKey'.
33 return stmt.all()
~~~~~~~~~~~~~~~~~
`
The text was updated successfully, but these errors were encountered:
I have faced the same issue, I try to use Type Assertion to solve those errors, therefore I can run npm run build without errors. But I also can only get the initial Login/API menu when run the npm run start. I would like to know if you have solved this problem by any chance.
I am able to run the 'npm install' okay but I keep getting errors when running the 'npm run build', and when I try and run 'npm run start' I can login and create the api key and it is saved but never get the 'Download Series' option I only get the initial Login/API menu.
I have installed NodeJS without issues and I am running on a WIndows 11 system. Here are the errors I mentioned above:
`
src/database/AccountDao.ts:29:9 - error TS2322: Type 'unknown' is not assignable to type 'User | undefined'.
29 return stmt.get(id)
~~~~~~~~~~~~~~~~~~~
src/database/AccountDao.ts:39:9 - error TS2322: Type 'unknown[]' is not assignable to type 'User[]'.
Type 'unknown' is not assignable to type 'User'.
39 return stmt.all()
~~~~~~~~~~~~~~~~~
src/database/ApiKeyDao.ts:28:9 - error TS2322: Type 'unknown' is not assignable to type 'ApiKey | undefined'.
28 return stmt.get(id)
~~~~~~~~~~~~~~~~~~~
src/database/ApiKeyDao.ts:33:9 - error TS2322: Type 'unknown[]' is not assignable to type 'ApiKey[]'.
Type 'unknown' is not assignable to type 'ApiKey'.
33 return stmt.all()
~~~~~~~~~~~~~~~~~
`
The text was updated successfully, but these errors were encountered: