Using pebble/vibes in CloudPebble w/Alloy crashes the emulator

Hi all, I’m working on a watchapp in CloudPebble with Alloy, and I’ve had some trouble using the vibes module. I found this example through the docs:

import Vibes from "pebble/vibes"

// ...

Vibes.shortPulse();

When I create a default project and add the pebble/vibes import, the import itself causes the app to crash on the Emery emulator (the build passes)

[VERBOSE] xsHost.c:155: Exception loading main: SyntaxError: import default not found

Curious if anyone else has encountered this or has any suggestions, thanks!

1 Like

Hey! the pebble-examples repo is actively being updated by the Moddable Team with new features even if they are not in the Pebble SDK yet, vibration will be available in the next SDK release!

3 Likes

Ah good to know, thanks for the quick reply! :folded_hands:

1 Like