Skip to content

Missing ./modern export in @swagger-api/apidom-json-pointer breaks Vite builds [email protected] #10476

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

Open
cywhale opened this issue May 30, 2025 · 0 comments

Comments

@cywhale
Copy link

cywhale commented May 30, 2025

Q&A (please complete the following information)

  • OS: Ubuntu 20.04
  • Method of installation: yarn
  • swagger-ui-react version: 5.22.0

Describe the bug you're encountering

After upgrading swagger-ui-react to version 5.22.0, my Vite project fails to build due to a missing ./modern export in the @swagger-api/apidom-json-pointer package.

[plugin: vite:dep-pre-bundle] Missing "./modern" specifier in "@swagger-api/apidom-json-pointer" package

The stack trace points to:

import { URIFragmentIdentifier, evaluate as jsonPointerEvaluate } from '@swagger-api/apidom-json-pointer/modern';

I need to git reset --hard, then yarn install ([email protected]) to recover my app bundling by vite. So I can confirm the error only occurs at [email protected]

Additional context or thoughts

Environment:
Node.js v20.18.3
yarn install v1.22.19
[email protected]

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

No branches or pull requests

1 participant