Javascript hooks broken? #38
Replies: 4 comments
-
|
Could you please share the exact docker-compose.yml (or the docker run command) you’re using to start PocketBase? That way we can see which image/tag and version is actually running inside the container. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
please update the hooks your are using it seems your are trying to use deprecated api |
Beta Was this translation helpful? Give feedback.
-
|
it tried it myself usign this as hook, works // test.pb.js
onCollectionCreate((e) => {
// e.app
// e.collection
console.log('Collection created:', e.collection, e.app)
e.next()
})i got this log |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I'm so sorry if this post will be offensive but I'm using Gemini to start learning Pocketbase and finally got everything running in docker on my Unraid server. However, "we" are having issues executing the *pb.js code. Gemini is absolutely convinced that the problem is that I'm not running the "official" Pocketbase environment.
It gave me this code to run inside my test.pb.js file:
After restarting the docker this is our log file:
Now Gemini is convinced that this is proof that I can not use this community image:
Is there any truth to this or is Gemini just full of shit? I'm so sorry if this post in offensive but I am just trying to figure out why we can't get this to work.
Beta Was this translation helpful? Give feedback.
All reactions