-
-
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
Result in dev & after build is different #6524
Comments
I see the exact same thing with |
I'm not quite understand what you mean "more minimal example". I already put the Link to Minimal Reproducible Example. You can fork that |
By that I mean like as you said in the issue dev and after build are different, but in the stackblitz if you run both of the commands as above we see the same thing, hence asked for a setup that isn't using multiple things (like in your project using react, vue, etc..) so that gives us too many variables to look from. |
Hi. This is probably because autoproducent is disabled in dev |
I can reproduce this in the repro given (though I agree it's not really minimal), the issue is that you have this: // potensiStyle.scss
.ka-table {
width: 1065px !important;
} And that file is imported in It seems like the CSS got merged after build, so it is a bug. I'm not sure if it's within Vite's CSS bundling, or Astro's CSS tracking that's the issue yet though. |
Thank you guys for the reply.
Oh I'm sorry about that. Actually it was my real project & I know how to solve it using temporary solution. So I just need to remove unused code or package right? If that true, I will refactor it for minimal repro example
Yeah that's exactly the problem. |
What version of
astro
are you using?2.1.0
Are you using an SSR adapter? If so, which one?
Node
What package manager are you using?
yarn
What operating system are you using?
Linux
What browser are you using?
Brave
Describe the Bug
I'd like to report a bug where there is a difference in result when running in development mode (
yarn run dev
) and after build (yarn build
)Here steps to reproduce:
yarn install
yarn run dev
CTRL+C
yarn run build
HOST=0.0.0.0 node ./dist/server/entry.mjs
It should show the same result as in dev mode
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-9stbmj?file=src/components/Second.jsx
Participation
The text was updated successfully, but these errors were encountered: