No datasource property

Why is there no datasource property? I'm trying to migrate to prisma v7
No description
5 Replies
Prisma AI Help
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
Mike Hartington
What's the full file import?
import 'dotenv/config';
import { defineConfig, env } from 'prisma/config';
export default defineConfig({
datasource: {
url: env('DATABASE_URL'),
},
schema: 'prisma/schema.prisma',
});
import 'dotenv/config';
import { defineConfig, env } from 'prisma/config';
export default defineConfig({
datasource: {
url: env('DATABASE_URL'),
},
schema: 'prisma/schema.prisma',
});
for instance import { defineConfig, env } from 'prisma/config';
ThallesComH
ThallesComHOP2w ago
after using pnpm why prisma I found the issue, turns out I depend on https://www.npmjs.com/package/prisma-json-types-generator and they depend on prisma v6 seems like I'll need to ditch it or cotinue on v6 as Prisma itself does not want anything to do with that library https://github.com/arthurfiorette/prisma-json-types-generator/issues/542
GitHub
An Important Update on Maintenance · Issue #542 · arthurfiorette/...
To everyone who uses and supports this project, thank you. I'm incredibly proud that prisma-json-types-generator has become the most downloaded prisma community generator, with over 142,000 wee...
Mike Hartington
unfamiliar with the story behind primsa-json-types-generator, will look into it
ThallesComH
ThallesComHOP2w ago
thanks! at least re-opening this issue closed due to "inactivity" would be nice https://github.com/prisma/prisma/issues/27382

Did you find this page helpful?