Open SpintroniK opened 3 years ago
This is related to https://github.com/nuxt/content/issues/941 and https://github.com/nuxt/content/issues/921.
Nuxt content does not support the latest version for unified/remark/rehype, which the versions of rehype-katex
and remark-math
you are using require.
And JavaScript modules, while standard, are not supported by Nuxt yet nuxt/nuxt.js#9302
The ideal fix would be nuxt and nuxt/content upgrade to support these.
In the mean time, you can work around this, by downgrading remark-katex
to version 5 and remark-math
to version 4.
This is related to #941 and #921. Nuxt content does not support the latest version for unified/remark/rehype, which the versions of
rehype-katex
andremark-math
you are using require. And JavaScript modules, while standard, are not supported by Nuxt yet nuxt/nuxt.js#9302The ideal fix would be nuxt and nuxt/content upgrade to support these. In the mean time, you can work around this, by downgrading
remark-katex
to version 5 andremark-math
to version 4.
Thanks @ChristianMurphy for the workaround, did exactly as told and it worked for me. Much appreciated.
Hi, this issue concerns @nuxt/content v1 but is still relevant for @nuxt/content v2 as we don't have LaTeX support yet.
I am so adding both v1 and v2 tags.
If you are still interested in updates for @nuxt/content v2 you can keep following this issue.
Any update on this? I can successfully make use of the remark plugin mentioned above for a production build with isCustomElement
configured correctly. However, the build server still throws warning on custom elements in dev mode.
Hi! I seem to be unable to render LaTeX in my nuxt/content site... More info below!
Version
@nuxt/content: 1.14.0 nuxt: 2.15.8
Reproduction Link
I just used the link from #102: https://github.com/benjamincanac/nuxt-content-latex
Steps to reproduce
To reproduce the issue, clone the above repo, and ran
yarn yarn-upgrade-all
, which lead to:What is Expected?
yarn dev
should run and the page should render the math correctly:What is actually happening?
Two errors are fired before the server starts (note that it does start despite the errors):
Moreover, the page shows raw text:
The same thing happens on my nuxt/content project.
FYI, before the packages upgrade
package.json
versions are:After the packages upgrade:
Thanks in advance for your help/inputs on that.