Skip to content

fix(playground): resolve Next.js 16 Turbopack/webpack + fs errors #1229

Closed
KUNDAN1334 wants to merge 2 commits intoasyncapi:masterfrom
KUNDAN1334:fix(playground)/nextjs-16-turbopack
Closed

fix(playground): resolve Next.js 16 Turbopack/webpack + fs errors #1229
KUNDAN1334 wants to merge 2 commits intoasyncapi:masterfrom
KUNDAN1334:fix(playground)/nextjs-16-turbopack

Conversation

@KUNDAN1334
Copy link

Problem Solved #1216

Next.js 16 playground fails due to:

  • Turbopack/webpack conflicts
  • fs module errors (@asyncapi/parser in browser)
  • Deprecated ESLint config

#Before
WhatsApp Image 2026-02-12 at 9 40 51 PM

Fixes Applied

File Changes
next.config.mjs webpack fallbacks (fs/path/util/buffer), removed eslint
package.json (playground) --webpack flags in scripts
package.json (root) Fixed lerna dev workflow

Testing

npm install && npm run start

http://localhost:3000 working perfectly!

image

- Added webpack fallbacks for fs/path/util modules in client bundle
- Fixed deprecated eslint config in next.config.mjs
- Updated playground scripts with --webpack flags for Turbopack compatibility
- Updated root lerna scripts for proper dev workflow

Fixes asyncapi#1216

Tested on Next.js 16.1.5
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@sonarqubecloud
Copy link

@KUNDAN1334
Copy link
Author

@AceTheCreator please review this

@AceTheCreator
Copy link
Member

Hey man, thanks for opening this PR, but we already have a pending PR for this: #1215

@AceTheCreator
Copy link
Member

Kindly close this one 🙏🏽

@KUNDAN1334
Copy link
Author

@AceTheCreator ok

@KUNDAN1334 KUNDAN1334 closed this Feb 16, 2026
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