Closed mathieudutour closed 3 years ago
Can you throw your node_modules
away and reinstall?
I added import { micromark } from "micromark";
and console.log(micromark(sourceMarkdown));
to your codesandbox and it failed, when I added micromark as a dependency and updated it, it worked. Throwing those changes away, keeping your original remark code, worked.
I think it was solved in https://github.com/micromark/micromark/releases/tag/3.0.4
It is indeed solved, sorry about the noise
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
no problem, instead rather annoying that codesandbox has such a strong cache and no control over re-installing!
Initial checklist
Affected packages and versions
1.0.4
Link to runnable example
https://codesandbox.io/s/remark-debug-forked-38j17
Steps to reproduce
Try to parse
Expected behavior
Does not throw an error
Actual behavior
Throws
Cannot read property 'write' of undefined
Runtime
Node v16
Package manager
npm v7
OS
macOS
Build and bundle tools
Webpack