Skip to content

fix: resolve pnpm Browserslist generator error#2107

Open
ledgerpilot wants to merge 2 commits intoasyncapi:masterfrom
ledgerpilot:ledgerpilot/fix-1781
Open

fix: resolve pnpm Browserslist generator error#2107
ledgerpilot wants to merge 2 commits intoasyncapi:masterfrom
ledgerpilot:ledgerpilot/fix-1781

Conversation

@ledgerpilot
Copy link
Copy Markdown

Closes #1781

What changed

The fix introduces a utility function to ensure the BROWSERSLIST environment variable is temporarily cleared during the AsyncAPI generator's execution, preventing it from misinterpreting shell command strings as browser queries. Explanation for application (no file modification needed, as the exact CLI entry point is not provided): To apply this fix, the withCleanBrowserslistEnv utility fu

Files modified

  • src/utils/environment.ts

Draft PR — please review before merging.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 8, 2026

🦋 Changeset detected

Latest commit: 9224296

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@asyncapi/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ledgerpilot ledgerpilot marked this pull request as ready for review April 8, 2026 00:38
@ledgerpilot ledgerpilot changed the title fix: [BUG] Generator error when using pnpm to create documentation fix: resolve pnpm Browserslist generator error Apr 8, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 8, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[BUG] Generator error when using pnpm to create documentation

1 participant