🏠 back to Observable

Issue running @mbostock/slide example


#1

I tried importing @mike slide as shown in the examples here https://beta.observablehq.com/@mbostock/slide but I get a weird SyntaxError: Unexpected token:

What am I doing wrong?

Thanks much!


#2

Try putting each of those lines in a separate cell.


#3

Thanks for the suggestion @bgchen. Doing that just created 3 errors now:

:man_shrugging: This is puzzling.


#4

I’m not able to reproduce these errors. Could you link to your notebook?

Here’s a clean notebook I just put together for comparison; I’m not getting any errors in it:


#5

Weird, I’m not sure what happened in the other notebook @bgchen but I started clean and got it working.


#6

See the ReferenceError: document not found? You need @mbostock/slide singular, not plural.


#7

Ugh. Rookie mistake on my part. This was my first time playing with Observable. Thanks for the help @mike.


#8

plug

Here’s a pimped version of Mike’s slide with transitions and keyboard controls : @enkimute/pitch

end plug


#9

Nice work, @enkimute!


#10

@enkimute/pitch

Seems to be partially broken in Firefox and completely broken in Safari. Works in Chrome though.