-
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
In MDX: Renders, but throws warning #20538
Comments
Somehow shifting the plugin to the very end of the array fixed the problem. Not sure why. |
@acagastya I have the same problem that you do. I tried your solution but it didn't work for me. Can you reopen the ticket? The problem definitely comes from |
@huy-nguyen do you have the code online somewhere so that I can see what the issue is? |
@acagastya I solved my problem by adding |
Yeah this is a little weird. There's only one case where this shows up in github search: https://github.com/Dajamante/blog/blob/879c4a5f83e1cb8bcb91b7dde42beb9a3cfc1c5e/node_modules2/remark-math/index.js But I think it's a built file. Almost definitely from remark-math. The thing is, that output is generated by Why would Potentially a plugin is somehow executing code when serializing to disk? But it fails and screws up? |
I encountered the same problem. Using [email protected] and [email protected] |
It will not generate files, but it still reports errors on the console |
@cangSDARM This solution worked for me. So instead of using Note: Make sure to install version 3 of Anyway, here's the versions that I'm using at the moment: // package.json
"@mdx-js/mdx": "v2.0.0-next.8",
"@mdx-js/react": "v2.0.0-next.8",
"gatsby": "2.25.2",
"gatsby-plugin-mdx": "1.3.1",
"remark-html-katex": "3.0.0",
"remark-math": "3.0.1", And my config file: // gatsby-config.js
{
resolve: 'gatsby-plugin-mdx',
options: {
defaultLayouts: {
default: require.resolve(`./src/components/mdxLayout.js`),
},
remarkPlugins: [
require('remark-math'),
require('remark-html-katex'),
],
},
}, Hope it helps! |
@nikoladev Thanks! I will try it. I hope this time will not take too long :) |
Description
When using
gatsby-remark-katex
ingatsbyRemarkPlugin
ofgatsby-plugin-mdx
, output is rendered, but the console bombarded with this message:Steps to reproduce
gatsby-remark-katex
gatsby-remark-katex
togatsbyRemarkPlugins
of the mdx plugin.Expected result
No warning should be generated if there is no issue.
What should happen?
No warning should be generated if there is no issue.
Actual result
Console is filled with this message:
Environment
System:
OS: macOS 10.15.2
CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.13.1 - /var/folders/sq/6y3f5vw514s6t14bm9hrbxzw0000gn/T/yarn--1578702400432-0.9155964409393913/node
Yarn: 1.21.1 - /var/folders/sq/6y3f5vw514s6t14bm9hrbxzw0000gn/T/yarn--1578702400432-0.9155964409393913/yarn
npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Firefox: 72.0.1
Safari: 13.0.4
npmPackages:
gatsby: ^2.18.4 => 2.18.21
gatsby-image: ^2.2.34 => 2.2.38
gatsby-plugin-manifest: ^2.2.30 => 2.2.37
gatsby-plugin-mdx: ^1.0.67 => 1.0.67
gatsby-plugin-offline: ^3.0.24 => 3.0.31
gatsby-plugin-react-helmet: ^3.1.16 => 3.1.21
gatsby-plugin-sharp: ^2.3.4 => 2.3.13
gatsby-remark-abbr: ^2.0.0 => 2.0.0
gatsby-remark-embed-spotify: ^2.1.1 => 2.1.1
gatsby-remark-footnotes: ^0.0.7 => 0.0.7
gatsby-remark-katex: ^3.1.20 => 3.1.23
gatsby-remark-mermaid: ^1.2.0 => 1.2.0
gatsby-remark-prismjs: ^3.3.29 => 3.3.30
gatsby-remark-responsive-iframe: ^2.2.30 => 2.2.31
gatsby-source-filesystem: ^2.1.39 => 2.1.46
gatsby-transformer-remark: ^2.6.45 => 2.6.48
gatsby-transformer-sharp: ^2.3.6 => 2.3.12
The text was updated successfully, but these errors were encountered: