Skip to content
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

"With statement are not allowed in strict mode" #59312

Open
1 task done
headline-design opened this issue Dec 6, 2023 · 0 comments
Open
1 task done

"With statement are not allowed in strict mode" #59312

headline-design opened this issue Dec 6, 2023 · 0 comments
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.

Comments

@headline-design
Copy link

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

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro
Binaries:
  Node: 18.17.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.4-canary.43
  eslint-config-next: 14.0.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A

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.

@headline-design headline-design added the bug Issue was opened via the bug report template. label Dec 6, 2023
@github-actions github-actions bot added Markdown (MDX) Related to Markdown with Next.js. TypeScript Related to types with Next.js. labels Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant