Closed christopherpickering closed 1 year ago
I am running this on icloud drive........ hehe icloud is probably offloading the file as they offload files I don't use for a few hrs or so it seems.
I just popped into the files and noticed that a bunch are offloaded (here meilisearch index):
I'm going to move off of icloud, close this issue and reopen if I get the error again.
Bug description
@janpio in reference to #16334
This error message is still coming up, but I have not figured out how to reproduce it yet.
I am able to remove node_modules, install, and run again to resolve.
Here is the full log:
Full log
```sh /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/library.js:103 `,new G(i,this.config.clientVersion)}return this.platform=this.platform??await Be(),t}async resolveEnginePath(){let searchedLocations=[],enginePath;if(this.libQueryEnginePath)return{enginePath:this.libQueryEnginePath,searchedLocations};if(this.platform=this.platform??await Be(),__filename.includes("DefaultLibraryLoader"))return enginePath=We.default.join(Yo(),kt(this.platform,"fs")),{enginePath,searchedLocations};let dirname=eval("__dirname"),searchLocations=[We.default.resolve(dirname,"../../../.prisma/client"),this.config.generator?.output?.value??dirname,We.default.resolve(dirname,".."),We.default.dirname(this.config.datamodelPath),this.config.cwd,"/tmp/prisma-engines"];this.config.dirname&&searchLocations.push(this.config.dirname);for(let e of searchLocations)if(searchedLocations.push(e),Bs(`Searching for Query Engine Library in ${e}`),enginePath=We.default.join(e,kt(this.platform,"fs")),Pt.default.existsSync(enginePath))return{enginePath,searchedLocations};return enginePath=We.default.join(__dirname,kt(this.platform,"fs")),{enginePath,searchedLocations}}getFixedGenerator(){let e={...this.config.generator,binaryTargets:Zn(this.config.generator.binaryTargets,this.platform)};return ei(e)}};var Vs=R(require("os")),lp=J("prisma:client:libraryEngine:exitHooks"),Kr=class{constructor(){this.nextOwnerId=1;this.ownerToIdMap=new WeakMap;this.idToListenerMap=new Map;this.areHooksInstalled=!1;this.exitLikeHook=async t=>{lp(`exit event received: ${t}`);for(let r of this.idToListenerMap.values())await r();this.idToListenerMap.clear()}}install(){this.areHooksInstalled||(this.installExitEventHook("beforeExit"),this.installExitEventHook("exit"),this.installExitSignalHook("SIGINT"),this.installExitSignalHook("SIGUSR2"),this.installExitSignalHook("SIGTERM"),this.areHooksInstalled=!0)}setListener(t,r){if(r){let n=this.ownerToIdMap.get(t);n||(n=this.nextOwnerId++,this.ownerToIdMap.set(t,n)),this.idToListenerMap.set(n,r)}else{let n=this.ownerToIdMap.get(t);n!==void 0&&(this.ownerToIdMap.delete(t),this.idToListenerMap.delete(n))}}getListener(t){let r=this.ownerToIdMap.get(t);if(r!==void 0)return this.idToListenerMap.get(r)}installExitEventHook(t){process.once(t,this.exitLikeHook)}installExitSignalHook(t){process.once(t,async r=>{if(await this.exitLikeHook(r),process.listenerCount(r)>0)return;let i=Vs.default.constants.signals[r]+128;process.exit(i)})}};var Ne=J("prisma:client:libraryEngine");function up(e){return e.item_type==="query"&&"query"in e}function cp(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var Us=[...zn,"native"],Qs=0,Ti=new Kr,Zt=class extends Jr{constructor(r,n=new Gr(r)){super();try{this.datamodel=Js.default.readFileSync(r.datamodelPath,"utf-8")}catch(i){throw i.stack.match(/\/\.next|\/next@|\/next\//)?new G(`Your schema.prisma could not be found, and we detected that you are using Next.js. ^ PrismaClientInitializationError: Query engine library for current platform "darwin" could not be found. You incorrectly pinned it to darwin This probably happens, because you built Prisma Client on a different platform. (Prisma Client looked in "/Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/libquery_engine-darwin.dylib.node") Searched Locations: /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/.prisma/client /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/.prisma/client /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/prisma /tmp/prisma-engines /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/.prisma/client You already added the platforms "darwin", "debian-openssl-3.0.x" to the "generator" block in the "schema.prisma" file as described in https://pris.ly/d/client-generator, but something went wrong. That's suboptimal. Please create an issue at https://github.com/prisma/prisma/issues/new at Gr.getLibQueryEnginePath (/Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/library.js:103:3) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Gr.loadLibrary (/Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/library.js:77:790) at async Zt.loadEngine (/Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/library.js:105:538) at async Zt.instantiateLibrary (/Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/library.js:104:1832) { clientVersion: '4.14.0', errorCode: undefined } Node.js v20.2.0 [next-auth][warn][EXPERIMENTAL_API] `getServerSession` is used in a React Server Component. https://next-auth.js.org/configuration/nextjs#getServerSession} https://next-auth.js.org/warnings#EXPERIMENTAL_API - error unhandledRejection: Error: Query engine library for current platform "darwin" could not be found. You incorrectly pinned it to darwin This probably happens, because you built Prisma Client on a different platform. (Prisma Client looked in "/Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/libquery_engine-darwin.dylib.node") Searched Locations: /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/.prisma/client /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/.prisma/client /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/prisma /tmp/prisma-engines /Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/.prisma/client You already added the platforms "darwin", "debian-openssl-3.0.x" to the "generator" block in the "schema.prisma" file as described in https://pris.ly/d/client-generator, but something went wrong. That's suboptimal. Please create an issue at https://github.com/prisma/prisma/issues/new at Gr.getLibQueryEnginePath (/Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/library.js:103:3) at async Gr.loadLibrary (/Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/library.js:77:790) at async Zt.loadEngine (/Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/library.js:105:538) at async Zt.instantiateLibrary (/Users/christopherpickering/Library/Mobile Documents/com~apple~CloudDocs/Projects/prayercalendar.org/website_next/node_modules/@prisma/client/runtime/library.js:104:1832) { digest: undefined } ```How to reproduce
npm run dev
)((remix || next) && prisma)
(npm run dev
)Expected behavior
No error :)
Prisma information
Here is the nextjs schema for the site the normally (only?) errors.
Environment & setup
Prisma Version