-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[gatsby-plugin-netlify-cms] webpack and global node modules #10326
Comments
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! Thanks for being a part of the Gatsby community! 💪💜 |
Not stale |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m Thanks again for being part of the Gatsby community! |
@karolis-sh I have the same issue. Does it work for you now? |
@Knaackee nope, the issue is still present. I'm just waiting for mdx runtime update mdx-js/mdx#704 :| |
Thanks @karolis-sh for pointing out that mdx-js/runtime is the problem. |
Are there any workarounds for this issue? |
@hhimanshu @karolis-sh mdx-js/mdx#913 There was a recent version of netlify CMS that allows you to edit the config for the plugin itself. Here was my workaround:
|
Description
I'm doing some MDX transformations with standalone babel and if imported modules have any references to node global modules, the webpack transpilation fails on CMS build.
Adding to
gastby-node.js
the following:Has no effect, as I understand the CMS has separate webpack config, that I can't override.
FYI. With
node: { fs: 'empty' },
theimport 'babel-plugin-pluck-imports';
does not break normal (non CMS) pages.Steps to reproduce
In cms initialization file:
Expected result
The CMS should transpile.
Actual result
Webpack transpilation fails with error:
Environment
The text was updated successfully, but these errors were encountered: