FunSociety
FunSociety
PPrisma
Created by FunSociety on 6/13/2024 in #help-and-questions
I'm trying to use prisma prisma in remix (ERR_RESOLVE_PACKAGE_ENTRY_FAIL)
I tried this code to see if I saw the changes.
import db from "./db" // import your extended Prisma Client instance

async function main() {
const subscription = await db.usuario.subscribe()

for await (const event of subscription) {
console.log('New event:', event)
}
}

main()
import db from "./db" // import your extended Prisma Client instance

async function main() {
const subscription = await db.usuario.subscribe()

for await (const event of subscription) {
console.log('New event:', event)
}
}

main()
And it actually worked correctly, but when I try with remix when launching the project with npm run dev it gives me this error (Error: Failed to resolve entry for package "@prisma/extension-pulse". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "@prisma/extension-pulse" package) This is my package.json
https://pastebin.com/aAw1FHwn
https://pastebin.com/aAw1FHwn
3 replies