Skip to content
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

Runtime error with webpack 5 & babel 7 -- Uncaught TypeError: visit is not a function #265

Closed
turenc opened this issue Sep 20, 2021 · 1 comment

Comments

@turenc
Copy link

turenc commented Sep 20, 2021

Hi,

First of all, thanks for offering this beautiful component for free.

We want to use more up-to-date packages in our project but, when we are upgrade the "webpack" version 4 to 5 and upgrade the "babel.js" 6 to 7 versions in our package.json,
an issue occurs with the "uiwjs/react-md-editor" library or (rehype etc.) dependencies of "uiwjs/react-md-editor" on runtime.

Sample:
https://github.com/turenc/-uiw-react-md-editor
Error:
"Uncaught TypeError: visit is not a function"
on "node_modules/@mapbox/rehype-prism/index.js"

I would appreciate your help in this matter.

@turenc turenc changed the title Runtime error with webpack 5 & babel 7 Runtime error with webpack 5 & babel 7 -- Uncaught TypeError: visit is not a function Sep 20, 2021
@turenc turenc closed this as completed Sep 24, 2021
@turenc
Copy link
Author

turenc commented Sep 24, 2021

I forked all 3rd and fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant