-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Could not locate the bindings file (wrangler) #3207
Comments
This will be fixed by #2073 which @alexlamsl is working on |
Cool I'll close and retest after that ticket is done. |
@Jarred-Sumner Just a heads up I'm still seeing this error in the canary build. I can setup a minimal repro if that would be helpful. |
I have encountered the same error, and the fix I have found is to go into |
I couldn't get that working with:
|
I'm also hitting this issue |
Likewise, with the latest |
For me this issue is resolved when adding "trustedDependencies": [
"better-sqlite3"
] to package.json and re-installing dependencies. Notice that you need to add better-sqlite3, not wrangler to trustedDependencies. |
I tried this, but also had to Unfortunately, once I go run the code i get:
|
cloudflare/workers-sdk#3964 - I figured out what it was for me; a simple nuking and reinstalling fixed using |
This has been resolved for me as of |
What platform is your computer?
Darwin 21.3.0 arm64 arm
How did you attempt to install or upgrade?
bun i wrangler
wrangler
What do you see instead?
[mf:err] Error: Could not locate the bindings file. Tried:
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/build/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/build/Debug/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/build/Release/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/out/Debug/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/Debug/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/out/Release/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/Release/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/build/default/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/compiled/20.2.0/darwin/arm64/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/addon-build/release/install-root/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/addon-build/debug/install-root/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/addon-build/default/install-root/better_sqlite3.node
→ /Users/grantkiely/code/my-project/node_modules/better-sqlite3/lib/binding/node-v115-darwin-arm64/better_sqlite3.node
at bindings (/Users/grantkiely/code/my-project/node_modules/bindings/bindings.js:126:9)
at new Database (/Users/grantkiely/code/my-project/node_modules/better-sqlite3/lib/database.js:48:64)
at createFileStorage (/Users/grantkiely/code/my-project/node_modules/miniflare/dist/src/index.js:3627:14)
at GatewayFactory.getStorage (/Users/grantkiely/code/my-project/node_modules/miniflare/dist/src/index.js:3686:12)
at GatewayFactory.get (/Users/grantkiely/code/my-project/node_modules/miniflare/dist/src/index.js:3692:26)
at CacheRouter.put (/Users/grantkiely/code/my-project/node_modules/miniflare/dist/src/index.js:4880:41)
at CacheRouter.route (/Users/grantkiely/code/my-project/node_modules/miniflare/dist/src/index.js:3822:27)
at #handleLoopbackPlugins (/Users/grantkiely/code/my-project/node_modules/miniflare/dist/src/index.js:8919:54)
at #handleLoopback (/Users/grantkiely/code/my-project/node_modules/miniflare/dist/src/index.js:8988:53)
at Server.emit (node:events:523:35)
Additional information
Related: #2130
If you need a repro I can set one up.
The text was updated successfully, but these errors were encountered: