-
Notifications
You must be signed in to change notification settings - Fork 151
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
Prisma client fails build #73
Comments
Can you share more information about your project? Seems more like a TypeScript error in the first place. However using the TypeScript example gives me a lot of TypeScript related errors. |
Yes it's a typescript error.
Yeah I have deployed it to Vercel. I don't seem to have any typescript related issues there.
Here's my tsconfig {
"compilerOptions": {
"sourceMap": true,
"outDir": "dist",
"strict": true,
"lib": [
"esnext"
],
"esModuleInterop": true,
"target": "es5",
"allowJs": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
} tf-next version: 0.5.0 Here's next.config.js: const withTM = require('next-transpile-modules')(['react-spring']); // pass the modules you would like to see transpiled
const path = require("path");
module.exports = withTM(); main.tf: # main.tf
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}
# Main region where the resources should be created in
provider "aws" {
region = "us-east-1"
}
module "tf_next" {
source = "dealmore/next-js/aws"
}
output "cloudfront_domain_name" {
value = module.tf_next.cloudfront_domain_name
} |
Sorry for the radio silence here. As a workaround you can run |
Great thanks I'll try the workaround when I have a chance! |
Okay, finally found the main issue. Since our build environment is forked from the Vercel environment we also need to set this environment variable in order to get the workaround from Prisma correctly applied. |
Just released |
Ok there was still a small error, which caused the types generation to take place in the wrong directory. |
Build fails for projects using prisma client.
The text was updated successfully, but these errors were encountered: