PrismaP
Prisma3d ago
1 reply
Louis

Failed to parse syntax of config file

Hi! I've a problem, when I build my nest js api with prisma and try to use a command in my project in production like "npx prisma db push", I've this error :
Failed to parse syntax of config file at "/home/debian/flash-net/prisma.config.js


This is my current prisma.config.js, the same as the example project with nestjs of the documentation :
import 'dotenv/config'
import { defineConfig, env } from 'prisma/config'

export default defineConfig({
    schema: 'prisma/schema.prisma',
    migrations: {
        path: 'prisma/migrations',
        seed: 'tsx ./prisma/seed.ts'
    },
    datasource: {
        url: env('DATABASE_URL')
    },
})

The error only appears in production in my virtual private server. I've no problems with running prisma in my nest js project in devlopment or in production on my computer.

I try some help with No Access but I didn't found any solution : https://discord.com/channels/937751382725886062/1458659390340075667

Thx in advance for your help!
Was this page helpful?