"With statement are not allowed in strict mode" #59312
Labels
bug
Issue was opened via the bug report template.
Markdown (MDX)
Related to Markdown with Next.js.
TypeScript
Related to types with Next.js.
Link to the code that reproduces this issue
https://github.com/headline-design/min-repro
To Reproduce
Start application in development
Current vs. Expected behavior
This is a new issue that did not exist in Next 13.4. I believe the error has something to do with ESM bundling but I may be wrong. The error effects all users that rely on Turndown for ProseMirror/TipTap serialization. I believe the error can be resolved with a next/config flag but I may be wrong. Here is a link to the discussion on Turndown - mixmark-io/turndown#378.
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router, ESLint (eslint-config-next), MDX (@next/mdx), TypeScript (plugin, built-in types)
Additional context
Reproduction with create-next-app latest Canary but issue on any build w/ Next + 13.4.
The text was updated successfully, but these errors were encountered: