Attempting to upgrade from mdx 1.6.22 to 2.1.2 throwing error: cannot find module estree-walker. #2088
-
Hi, I've been attempting to ugprade this Meteor package Meteor-mdx from MDX 1.6.22 to MDX 2.1.2. My current var packages = ["ecmascript", "isobuild:[email protected]"]
Package.describe({
name: "foo",
version: "0.0.5",
summary: "Compiler plugin that supports MDX files in Meteor",
git: "https://github.com/Apollinaire/meteor-mdx",
documentation: "README.md"
})
Package.registerBuildPlugin({
name: "compile-mdx",
use: ["ecmascript", "babel-runtime", "babel-compiler", "caching-compiler"],
sources: ["compiler.js", "plugin.js"],
npmDependencies: {
/* "estree-walker": "3.0.0", */ // Tried adding this in but it didn't change anything
"@babel/runtime": "7.18.9",
"@mdx-js/mdx": "2.1.2"
}
})
Package.onUse(function use(api) {
api.versionsFrom("1.3.2.4")
api.use(packages, ["server", "client"])
}) And in my
I tried manually including How should I go about troubleshooting this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The dependency issue is just one side effect of it not being designed for version 2. |
Beta Was this translation helpful? Give feedback.
meteor-mdx
doesn't support MDX 2 yet.It is calling APIs which don't exist in version 2 https://github.com/Apollinaire/meteor-mdx/blob/0cee4c6ecc664c8a0341fee0cb1dff324b4fa14f/compiler.js#L70 (version 2 API https://mdxjs.com/packages/mdx/)
The dependency issue is just one side effect of it not being designed for version 2.
This would be something to take up with the author(s) of the integration
https://github.com/Apollinaire/meteor-mdx/issues