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

Changes in 2.2.1 caused import error when following the old documentation #180

Open
FreekyMage opened this issue Jan 22, 2024 · 2 comments

Comments

@FreekyMage
Copy link

The latest update should probably not have been a patch version bump. We were using import Portal from "svelte-portal/src/Portal.svelte"; like the documentation suggested. This caused builds to fail with this new version, even in projects that didn't directly import it. A patch gets applied even with a simple install command if you're using the widely accepted ^ for your versions. In our case this was ^2.2.0.

Now the version can't be changed anymore, but the documentation should be updated to not show broken code.

@Renkas
Copy link

Renkas commented Feb 24, 2024

Error: Missing "./src/Portal.svelte" specifier in "svelte-portal" package

Is this the same issue? Is there a workaround?

EDIT:
workaround/fix is to import Portal this way: import Portal from "svelte-portal";

@FreekyMage
Copy link
Author

Not sure if we had the exact same error, but your edit is the fix, just like how it is in the top part of the documentation.

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

2 participants