We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently it doesn't work for Next.js project.
This is the error I get when previewing mdx file:
Unhandled Rejection (Error): React is not defined w lib/errors.ts:43:8 40 | */ 41 | const handleRuntimeError = (error: Error) => { 42 | hasRuntimeError = true; > 43 | throw new Error(error.message); | ^ 44 | }; 45 | 46 | export { View compiled (anonymous function) evaluate.ts:134:4 131 | ExtensionHandle.reportPerformance(evaluationEndTime - evaluationStartTime); 132 | return evaluatedModule; 133 | } catch(error) { > 134 | handleRuntimeError(error); | ^ 135 | } finally { 136 | evaluationProgress.value = EvaluationProgress.COMPLETED; 137 | } View compiled ▶ 5 stack frames were collapsed. This screen is visible only in development. It will not appear if the app crashes in production. Open your browser’s developer console to further inspect this error.
The text was updated successfully, but these errors were encountered:
Any news about this ?
Sorry, something went wrong.
Next.js auto imported React in components. Seems like you should manually import React again in the component which is used in MDX.
import React from "react"
Hello .... I think I am experience this issue. Attempting to Preview .mdx files in a Next.js project in vsCode
In files.associations you mention the languageId to use for a particular file extension
"files.associations": { "*.mdx": "markdown" },
No branches or pull requests
Currently it doesn't work for Next.js project.
This is the error I get when previewing mdx file:
The text was updated successfully, but these errors were encountered: