-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On NodeJS - TypeError: Cannot process
without Compiler
#63
Comments
I uncounted the same err. I import the remark-slate with: Then resolve the error with:
|
@woodpeng interesting, is this an issue with how I'm distributing the module? If so that sounds like an easy fix |
Since my project using CommonJs instead of ESM, I have to use 'require' to import the module. I am not sure whether this change caused the err, then have to add the '.default' to make it work. |
I too am receiving the await unified().use(remarkParse).use(remarkSlate.default).process('[my link](https://github.com)'); Any thoughts? |
Hi,
Thanks for everybody's efforts on this project.
I've been having issues getting it to work on NodeJS and all things point to the issue being with remark-slate with Node. The same code worked fine in the browser within a React app. I want to use this on the backend to handle read/write from markdown persistence.
I've tried debugging myself but haven't made much progress. I've also tried different versions of dependencies with no luck.
Seems like somebody else has had issues trying to use for a similar use case. See thread here.
fwiw I seem to be making a bit more progress with
remark-slate-transformer
.Any ideas?
Much appreciated.
My test code
The error thrown by Unified.
node_modules/unified/lib/index.js:520 the assertCompiler function.
with ESM + Typescript
The text was updated successfully, but these errors were encountered: