main.TableName Error

Hi noob question here, Do u have any idea why i'm getting this error. I compiled with webpack PrismaClientKnownRequestError: Invalid prisma.configuraciones.findMany() invocation: The table main.Configuraciones does not exist in the current database. at e.value (/home/dist/bundle.js:2:323265) at e.value (/home/dist/bundle.js:2:322530) at e.<anonymous> (/home/dist/bundle.js:2:322031) at f (/home/dist/bundle.js:2:91185) at Generator.<anonymous> (/home/backtienda/dist/bundle.js:2:92533) at Generator.throw (/home/backtienda/dist/bundle.js:2:91614) at asyncGeneratorStep (/home/dist/bundle.js:2:97117) at s (/home/dist/bundle.js:2:97389) { code: 'P2021', clientVersion: '5.17.0', meta: { modelName: 'Configuraciones', table: 'main.Configuraciones' } }
2 Replies
<Jordy/>
<Jordy/>4mo ago
the problem is that you are trying to access your bdd in the compiled file but it will not take it from there, you must have your bdd one level outside the project to take it as main.
Nurul
Nurul4mo ago
Does table "configuraciones" exist in the "main" schema?
Want results from more Discord servers?
Add your server