Closed signed closed 9 months ago
You only need @asciidoctor/core
in your package.json
:
The asciidoctor
package is a meta-package that includes the CLI and @asciidoctor/core
.
I guess we need to release a new version to be compatible with the latest version of Asciidoctor.js. Both Asciidoctor reveal.js and Asciidoctor.js need to be compiled using the same version of Opal (which is not the case).
@ggrossetie Is there a workaround for this atm?
@rawkode you could use the previous version but I intend to release a new version which is compatible with Asciidoctor.js 3.x.
Pull request: https://github.com/asciidoctor/asciidoctor-reveal.js/pull/524
@ggrossetie Awesome 👍🏻
Thanks for the assist, that PR helps.
@signed @rawkode should be OK now, just tried https://docs.asciidoctor.org/reveal.js-converter/latest/setup/node-js-setup/ and it's working fine with 5.1.0.
I'm following the Node / JavaScript Setup (minimal reproducer). When I run
node convert-slides.js
I get this error (happens with npm, yarn, pnpm)It looks like the problem is in
Opal.add_stubs
in@asciidoctor/opal-runtime
.The docs state that
stubs
should be an array. Butsplit
is not defined on array. From debugging it looks like some callers ofOpal.add_stubs
passstring[]
e.g. ([$==,$require]
) others pass a string of comma separated values (e.g.require,autoload
).