Skip to content

JS Hooks not working on M1 Mac #4834

Discussion options

You must be logged in to vote

I don't have access to a mac to verify it but I don't think your issue is PocketBase related as the above code doesn't have anything platform specific - it just prints to the stdout.

Double check that your binary actually works with the pb_hooks directory that you are updating and that your hook file ends with .pb.js (I suspect the latter).

To explicitly specify a hook directory you can try running:

# use "./pocketbase serve --help" to list all flags
./pocketbase serve --hooksDir='/path/to/your/pb_hooks'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KieranFleckney
Comment options

Answer selected by KieranFleckney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4833 on April 27, 2024 15:33.