-
Notifications
You must be signed in to change notification settings - Fork 317
fix: avoid empty import #1771
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: avoid empty import #1771
Conversation
@teemingc is attempting to deploy a commit to the Themesberg Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe change updates an import in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Error with v1.14.2: Error compiling component ![]() |
Is it because of this line in Accordion.svelte?
|
Yeah, I should have checked if there were more of these. My bad. Let me do a follow-up |
If that is the cause, shouldn't svelte side fix the problem? |
follow-up to #1770
This changes one of the imports in
src/lib/theme/themeUtils.ts
to be a type-only import. This helps avoid the error in the Svelte playground caused by an import to a non-existent directory. cc: @shinokadaBasically, the issue was this:
was being transformed into this:
But if we make it type-only:
It removes the entire import statement when compiled to JS.
📑 Description
Status
✅ Checks
api-check
directory as requiredpnpm check && pnpm test:e2e
ℹ Additional Information
Summary by CodeRabbit
Refactor
Chores