-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
🐛 BUG: CSS modules not bundled in built sites if using client:only vue components imported via alias #3199
Comments
Probably related to #2575 as well |
I'm having the same problem w/ currently v0.26.1 |
I can confirm on the latest v1.0.0-beta as well. This is only |
This is caused by an upstream bug: rollup/plugins#1190. Tracking that and can follow-up when it's complete. |
Appears to still be happening: https://stackblitz.com/edit/github-fwoavp-hrx2y2?file=package.json |
@bluwy this might be fixed by that new resolution idea we discussed. Assigning to you, but this can be checked after the refactor. |
Looks like this is fixed in Astro 1.2.0, #4699 |
I am still seeing a similar issue in Astro 1.6.0 and @astrojs/react 1.2.2. After deploying to Vercel the components are displayed unstyled in the browser. |
Using version 4.0.6 and the issue is still there .. :/ |
What version of
astro
are you using?1.0.0-beta.17
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
Describe the Bug
CSS modules not bundled when building sites if using
client:only
vue components imported via aliasThis is a similar issue to existing (closed) issues where CSS modules imported to
client:only
vue
(or other) components are ignored when building a site:client:only
directive #2966client:only
#2225These issues are now resolved and closed, however, the issue still arises when importing a component via an alias.
For example:
import Counter from '../components/Counter.vue';
import Counter from '@src/components/Counter.vue';
Note - this issue is not a problem in development mode, so you have to build then preview the site to see the problem in action.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-fwoavp-wvrbax
Participation
The text was updated successfully, but these errors were encountered: