17 days ago
${n}`}var hl=require("@prisma/client-runtime-utils");function wl(e){return e.length===0?Promise.resolve([]):new Promise((t,r)=>{let n=new Array(e.length),i=null,o=!1,s=0,a=()=>{o||(s++,s===e.length&&(o=!0,i?r(i):t(n)))},l=c=>{o||(o=!0,r(c))};for(let c=0;c<e.length;c++)e[c].then(u=>{n[c]=u,a()},u=>{if(!(0,hl.hasBatchIndex)(u)){l(u);return}u.batchRequestIdx===c?l(u):(i||(i=u),a())})})}var Lt=M("prisma:client");typeof globalThis=="object"&&(globalThis.NODE_CLIENT=!0);var Bd={requestArgsToMiddlewareArgs:e=>e,middlewareArgsToRequestArgs:e=>e},Qd=Symbol.for("prisma.client.transaction.id"),Hd={id:0,nextId(){return++this.id}};function Pl(e){class t{_originalClient=this;_runtimeDataModel;_requestHandler;_connectionPromise;_disconnectionPromise;_engineConfig;_accelerateEngineConfig;_clientVersion;_errorFormat;_tracingHelper;_previewFeatures;_activeProvider;_globalOmit;_extensions;_engine;_appliedParent;_createPrismaPromise=ti();constructor(n){if(!n)throw new w.PrismaClientInitializationError("`PrismaClient` needs to be constructed with a non-empty, valid `PrismaClientOptions`:\n\n```\nnew PrismaClient({\n ...\n})\n```\n\nor\n\n```\nconstructor() {\n super({ ... });\n}\n```\n ",oi);e=n.__internal?.configOverride?.(e)??e,yl(n,e);let i=new Tl.EventEmitter().on("error",()=>{});this._extensions=Le.empty(),this._previewFeatures=e.previewFeatures,this._clientVersion=e.clientVersion??oi,this._activeProvider=e.activeProvider,this._globalOmit=n?.omit,this._tracingHelper=nl();let o;if(n.adapter){o=n.adapter;let s=e.activeProvider==="postgresql"||e.activeProvider==="cockroachdb"?"postgres":e.activeProvider;if(o.provider!==s)throw new w.PrismaClientInitializationError(`The Driver Adapter \`${o.adapterName}\`, based on \`${o.provider}\`, is not compatible with the provider \`${s}\` specified in the Prisma schema.`,this._clientVersion)}try{let s=n??{},l=(s.__internal??{}).debug===!0;if(l&&M.enable("prisma:client"),s.errorFormat?this._errorFormat=s.errorFormat:process.env.NODE_ENV==="production"?this._errorFormat="minimal":process.env.NO_COLOR?this._errorFormat="colorless":this._errorFormat="colorless",this._runtimeDataModel=e.runtimeDataModel,this._engineConfig={enableDebugLogs:l,logLevel:s.log&&ol(s.log),logQueries:s.log&&!!(typeof s.log=="string"?s.log==="query":s.log.find(c=>typeof c=="string"?c==="query":c.level==="query")),compilerWasm:e.compilerWasm,clientVersion:e.clientVersion,previewFeatures:this._previewFeatures,activeProvider:e.activeProvider,inlineSchema:e.inlineSchema,tracingHelper:this._tracingHelper,transactionOptions:{maxWait:s.transactionOptions?.maxWait??2e3,timeout:s.transactionOptions?.timeout??5e3,isolationLevel:s.transactionOptions?.isolationLevel},logEmitter:i,adapter:o,accelerateUrl:s.accelerateUrl,sqlCommenters:s.comments},this._accelerateEngineConfig=Object.create(this._engineConfig),this._accelerateEngineConfig.accelerateUtils={resolveDatasourceUrl:()=>{if(s.accelerateUrl)return s.accelerateUrl;throw new w.PrismaClientInitializationError(`\`accelerateUrl\` is required when using \`@prisma/extension-accelerate\`:Pinned Solution
17 days ago
hey the error is telling you that accelerateurl is required because you have the accelerate extension installed. you have two options: either uninstall the extension with npm uninstall @prisma/extension-accelerate if youre not using prisma accelerate, or if you are using it then add accelerateurl to your prismaclient constructor with your prisma cloud connection string. check your package.json to see if you have @prisma/extension-accelerate installed and remove it if you dont need it
doue
1 Replies
17 days ago
hey the error is telling you that accelerateurl is required because you have the accelerate extension installed. you have two options: either uninstall the extension with npm uninstall @prisma/extension-accelerate if youre not using prisma accelerate, or if you are using it then add accelerateurl to your prismaclient constructor with your prisma cloud connection string. check your package.json to see if you have @prisma/extension-accelerate installed and remove it if you dont need it
doue
Status changed to Solved noahd • 16 days ago