Skip to content

docs: fix ejs v4 compatibility in Sudoku example - #212

Merged
hzhangxyz merged 1 commit into
mainfrom
fix/ejs-v4-compatibility
Jan 28, 2026
Merged

docs: fix ejs v4 compatibility in Sudoku example#212
hzhangxyz merged 1 commit into
mainfrom
fix/ejs-v4-compatibility

Conversation

@hzhangxyz

Copy link
Copy Markdown
Member

Update ejs import and usage to accommodate the ESM export changes in ejs v4.0.1, switching from a named 'render' import to the default export.

Update ejs import and usage to accommodate the ESM export changes in ejs v4.0.1,
switching from a named 'render' import to the default export.
Copilot AI review requested due to automatic review settings January 28, 2026 02:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the ejs library import and usage in the Sudoku example to be compatible with ejs v4.0.1, which changed from named exports to default exports in its ESM module structure.

Changes:

  • Updated ejs import from named import { render } to default import ejs
  • Updated function call from render() to ejs.render() to match the new import structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hzhangxyz
hzhangxyz merged commit e60972f into main Jan 28, 2026
95 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants