Skip to content
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

fix(libs): fix import error on multiple libs #4869

Merged
merged 4 commits into from
Sep 10, 2024

Conversation

alfetopito
Copy link
Collaborator

Summary

Fixes #4833

Short summary: this change, among other things, makes use of https://www.npmjs.com/package/vite-plugin-dts property pathsToAliases to disable the local path aliasing for given libs.
Before this change, the paths were converted to local path in the exported libs, resulting in errors when those were consumed.

Additionally, added missing dependencies to the individual lib package.json files and imported/exported types with the type keyword.

To Test

  1. Test the app and the widget
  • Should work as before

Copy link

vercel bot commented Sep 6, 2024

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

Name Status Preview Updated (UTC)
cosmos ✅ Ready (Inspect) Visit Preview Sep 6, 2024 4:38pm
cowfi ✅ Ready (Inspect) Visit Preview Sep 6, 2024 4:38pm
explorer-dev ✅ Ready (Inspect) Visit Preview Sep 6, 2024 4:38pm
swap-dev ✅ Ready (Inspect) Visit Preview Sep 6, 2024 4:38pm
widget-configurator ✅ Ready (Inspect) Visit Preview Sep 6, 2024 4:38pm

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

🚮 Removed packages: npm/[email protected]), npm/[email protected])

View full report↗︎

@elena-zh
Copy link

elena-zh commented Sep 9, 2024

Works as before :)

@alfetopito alfetopito marked this pull request as ready for review September 9, 2024 15:57
@alfetopito alfetopito requested a review from a team September 9, 2024 15:58
@alfetopito alfetopito merged commit 8cfd70b into develop Sep 10, 2024
15 of 16 checks passed
@alfetopito alfetopito deleted the fix/widget-lib-import-error branch September 10, 2024 16:57
@github-actions github-actions bot locked and limited conversation to collaborators Sep 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cow Swap Widget implementation error because dependencies not found
3 participants