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

Error: Dynamic require of "fs" is not supported with Remix new dev server #214

Open
kwiat1990 opened this issue Jul 2, 2023 · 0 comments

Comments

@kwiat1990
Copy link

I have followed Remix docs to change to ESM while using custom express server and after that I encounter an issue with the MDX Bundler:

node_modules/mdx-bundler/dist/index.js:8
var _fs = _interopRequireDefault(require("fs"));
                                 ^
Error: Dynamic require of "fs" is not supported
  • mdx-bundler version: 9.2.1
  • node version: 16.18.1
  • npm version: 8.9.2

I have also put MDX Bundler packages in the serverDependenciesToBundle of remix.config.js.

Can I get MDX Bundler working with Remix's new dev server or is it a deal breaker?

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