show-docs / remark-kroki

Kroki plugin of remark
MIT License
23 stars 1 forks source link

Docusaurus 3 example? #6

Closed rewdy closed 2 months ago

rewdy commented 2 months ago

This is not strictly an issue, but looking for a little guidance. I'm trying to install/use this on a docusaurus 3 website. I'm getting a bunch of errors from webpack when I try to start up or build. I guess I'm wondering if you have a docusaurus 3 site with the plugin functioning that I could look at for reference? If so, I could maybe use that to debug what's wrong with my setup.

Thanks for your plugin!

If it's helpful, these are some of the errors:

Module not found: Error: Can't resolve 'process/browser' in '/Users/andrewmeyer/Workspace/front-end/portal/node_modules/node-fetch/src'
Did you mean 'browser.js'?
BREAKING CHANGE: The request 'process/browser' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

Then a bunch of these for different node:* modules:

Module build failed: UnhandledSchemeError: Reading from "node:assert" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
Airkro commented 2 months ago

That error cause by other thing, not remark-kroki.

I create a minimal example here, It's working well.

image

rewdy commented 2 months ago

Thank you! I will review your example.