-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
No typescript module when deploying AgentGPT in newer version Node.js, either in Vercel and Netlify. #1536
Comments
Update: npm i && npm up && npm audit fix --force && npm run build ─╯
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '>=18.0.0 <19.0.0' },
npm WARN EBADENGINE current: { node: 'v21.6.2', npm: '10.2.4' }
npm WARN EBADENGINE }
> [email protected] postinstall
> prisma generate
prisma:warn Prisma detected unknown OS "android" and may not work as expected. Defaulting to "linux".
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
prisma:warn Prisma detected unknown OS "android" and may not work as expected. Defaulting to "linux".
✔ Generated Prisma Client (4.13.0 | library) to ./node_modules/@prisma/client in 284ms
You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client import { PrismaClient } from '@prisma/client'
We have some issue when using all of latest components in latest NODE.js. |
Another Update: DiagnosisThe build failed during the 'building site' stage with a type error in the file auth/index.ts at line 30. The specific error is:
SolutionTo fix this error, you need to ensure that prismaAdapter.createUser is assigned a valid function of type You should review the logic around prismaAdapter.createUser assignment in This error occurs in Netlify when using NODE.js 20 latest LTS. |
Please check that this issue hasn't been reported before.
Expected Behavior
Deploy successful and pages appear.
Current behaviour
It looks like you're trying to use TypeScript but do not have the required package(s) installed.
Steps to reproduce
npm i -g && npm up -g && npm audit fix --force && npm run build
ran in console and reproduce errors.Possible solution
Add
vercel.json
andnetlify.toml
and make sure all the components are sufficient and in possible latest version. Specifically, make suretypescript
metioned inpackage.json
andpackage-lock.json
.Which Operating Systems are you using?
Acknowledgements
The text was updated successfully, but these errors were encountered: