这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@mrlubos
Copy link
Member

@mrlubos mrlubos commented Aug 10, 2025

related #1079
related #2183
related #2237
related #2401

The pull request resolving the issue introduced a few problems. The first one appeared when running openapi-ts locally using pnpm --filter @hey-api/openapi-ts dev:

Error parsing: /hey-api/openapi-ts/packages/openapi-ts/dist/chunk-JBFAKSWW.js:2026:9
dist/chunk-JBFAKSWW.js (2026:9): Identifier "createRequire" has already been declared

The second one happened after trying to execute the built package using ./packages/openapi-ts/bin/index.cjs -f ./packages/openapi-ts-tests/main/test/openapi-ts.config.ts:

🛑 @hey-api/openapi-ts encountered an error.

❗️ Error: Dynamic require of "child_process" is not supported

I am partially reverting related #2401 here, let's see if that makes everyone happy!

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@changeset-bot
Copy link

changeset-bot bot commented Aug 10, 2025

⚠️ No Changeset found

Latest commit: dcc5c4d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link

vercel bot commented Aug 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hey-api-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 10, 2025 7:13pm

@mrlubos mrlubos marked this pull request as ready for review August 10, 2025 19:13
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug 🔥 Something isn't working labels Aug 10, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 10, 2025

Open in StackBlitz

npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/nuxt@2415
npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/openapi-ts@2415
npm i https://pkg.pr.new/hey-api/openapi-ts/@hey-api/vite-plugin@2415

commit: dcc5c4d

@mrlubos mrlubos merged commit 739a18d into main Aug 10, 2025
15 checks passed
@mrlubos mrlubos deleted the fix/cjs-build branch August 10, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🔥 Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants