Comments (9)
A minimal reproduction won't share any data of your client. But it is needed. 🙏
from nuxt.js.
Would you be able to provide a reproduction? 🙏
More info
Why do I need to provide a reproduction?
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
What will happen?
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect.
If needs reproduction
labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
How can I create a reproduction?
We have a couple of templates for starting with a minimal reproduction:
👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz
👉 https://codesandbox.io/s/github/nuxt/starter/v3-codesandbox
A public GitHub repository is also perfect. 👌
Please ensure that the reproduction is as minimal as possible. See more details in our guide.
You might also find these other articles interesting and/or helpful:
from nuxt.js.
Have you looked at the bundle to see what increased?
npx nuxi analyze
from nuxt.js.
For a build size to increase from 106Mb -> 760Mb I would very much hope that it's not JS but perhaps other kinds of assets. But bundle size is a good first step! And then likely investigating the outputs in more detail to see what is different.
from nuxt.js.
I can't provide you the reproduction right now, I can look into making a minimal reproduction. However, I didnt change anything except for the version and dependencies updates as a I have shared already.
from nuxt.js.
Based on those screenshots, there doesn't seem to be much difference between your js bundles. It is likely assets, such as video files, that make the difference.
I'll look forward to your reproduction.
from nuxt.js.
Hello @danielroe,
I am also working on this project as a lead resource. It's a large project, and since it's the client's private repository, I'm unsure if providing a reproduction or minimal reproduction is a good idea. However, I will see what we can do.
This build is from the same site at the same time from the database, so there is no difference in assets. The increase in build size might be due to third-party libraries we are using, such as Vuetify, which we registered differently this time in nuxt.config. We need guidance on what could have caused the approximate 7x increase in build size, especially since there were no significant changes.
- Same site (same data from db not a single text difference)
- same dependencies but updated versions
from nuxt.js.
Hi @danielroe,
I have encountered a significant difference in build sizes between Nuxt versions 3.5.3 and 3.12.2. To illustrate, I created minimal reproduction repositories with the same code:
When generating the build for both versions with just the home page (/) and a blog page (/blog), I observed the following build sizes:
Nuxt 3.5.3: approximately 13.2MB
Nuxt 3.12.2: approximately 39.5MB
The build size for version 3.12.2 is almost 3 times larger than that of 3.5.3. Given that this minimal reproduction is just a small fraction of the full code, the size discrepancy would likely increase further with additional pages.
Could you please investigate the cause of this large increase in build size? If you need any further information or assistance from my side, feel free to ask.
Thank you
from nuxt.js.
These projects are not the same. They have different sets of dependencies, and lots of different version differences other than the Nuxt changes. They are also not minimal reproductions.
I would advise you change only one thing at a time. For example, upgrade everything but Nuxt, and see if the size changes. I appreciate that might be time consuming but it often helps with finding and diagnosing the issue in a complex situation.
In order to reduce what is changing at any given time, I took your upgraded repo and ran a build, then downgraded Nuxt to v3.5.3 and Nitro to v2.4.1 and ran it again. The sizes were almost identical, though actually the newer public/
directory was smaller:
Note that the size is affected by:
- there are three copies of every file as
nitro.compressPublicAssets
produces both.gz
+.bz
versions in addition to the main asset - you are also generating server sourcemaps
However, I cannot reproduce any change from the Nuxt update. So it must be one of the other changes in the project. As I suggested above, it would be worth trying to update them (or downgrade them) one by one until you find the culprit.
If at any point you discover something that looks like Nuxt might be at fault, please do not hesitate to let me know - ideally with a minimal reproduction so I can confirm it's a Nuxt issue.
from nuxt.js.
Related Issues (20)
- Runtime Crash When Passing `to.matched` from Middleware to `router.resolve` Without Error Message HOT 3
- Types auto-import HOT 4
- Error "ENAMETOOLONG: name too long" occurs during pre-rendering on versions 3.11 and 3.12
- undefined title in google SERP? HOT 10
- When I build project, packed folder will loss some file in server/node_modules HOT 2
- The QueryString is double URL encoded when running `navigateTo` on the server side. HOT 1
- Instance type of Server component does not contain `refresh` HOT 2
- Hydration mismatch for nested server component HOT 3
- How to use nginx to reverse proxy nuxt3 with 5 different paths? HOT 1
- Route middleware causing duplicate runs on error HOT 2
- Custom useFetch losing original event during SSR HOT 1
- @nuxtbot nuxtbot changed the title Is there a way for Nuxt to render every page in SSR mode, rather than just the first time the page is opened? HOT 1
- Slot "default" invoked outside of the render function when using a composable (contains useLazyAsyncData) inside ClientOnly component HOT 7
- Imported css file with `?raw` should not be resolved HOT 1
- ERROR [nuxt] [request error] [unhandled] [500] [GET] "api/xx/yy": <no response> fetch failed. About using $fetch in server HOT 2
- how to set boost to false in nuxt.config.js HOT 2
- Replace vite-plugin-checker with something else HOT 4
- Unable to import useRuntimeConfig from a layer's server middleware HOT 1
- "UseFetchType" and also transforms the result into the desired output format using another transformer. HOT 1
- Utils Dir in compatibility Mode not auto-imported HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt.js.