Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'npm run build' issue #7

Open
Thuid opened this issue May 14, 2023 · 1 comment
Open

'npm run build' issue #7

Thuid opened this issue May 14, 2023 · 1 comment

Comments

@Thuid
Copy link

Thuid commented May 14, 2023

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()
~~~~~~~~~~~~~~~~~
`

@Cambo0
Copy link

Cambo0 commented Oct 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants