Comments (3)
Hi !
I quickly looked into it and it's a Webpack 5 compatibility issue with some Webpack-bundle-analyzer combinations of options.
I tested several combinations, and devMode: true
option seems to be the only combination not working with Gatsby v3.
Hopefully it will be fixed soon by Webpack-bundle-analyzer maintainers, in the meantime this is what I suggest :
-
If you don't really need it when running
gatsby develop
:
--> RemovedevMode: true
from plugin options. You can visualize the result runninggatsby build
instead. -
If you need it when running
gatsby develop
:
--> I suggest you disable analyser and generate a stats file. You can set it up this way in plugin options :
module.exports = {
plugins: [
{
resolve: 'gatsby-plugin-webpack-bundle-analyser-v2',
options: {
analyzerMode: 'disabled',
devMode: true,
generateStatsFile: true,
statsOptions: {
source: false,
},
},
},
],
};
gatsby-config.js
This will generate a stats.json
file at the root of your project. You can visualize this stats with Webpack-bundle-analyzer CLI using this command : npx webpack-bundle-analyzer ./path/to/stats.json
If you need to set some options here are the possible options : https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-cli
Let me know if it works for you ;)
from gatsby-plugin-webpack-bundle-analyser-v2.
Awesome, thanks for looking into this! Your suggestions worked wonderfully for me :)
from gatsby-plugin-webpack-bundle-analyser-v2.
any news on that topic? getting same on v1.1.22 in dev mode
from gatsby-plugin-webpack-bundle-analyser-v2.
Related Issues (18)
- Unsure of how to setup the plugin HOT 2
- [feat] - Allow webpack-bundle-analyser in DEV mode HOT 1
- how do we maintain the server tho ? HOT 2
- How to skip resolving plugin in production? HOT 3
- The automated release is failing 🚨
- Default to 'static' when running in Gatsby Cloud HOT 3
- Analyser is running in a production build HOT 3
- [chore] - Automate release and changelog generation
- Action Required: Fix Renovate Configuration
- warn Plugin gatsby-plugin-webpack-bundle-analyser-v2 is not compatible with your gatsby version 3.0.3 - It requires gatsby@^2.0.0 HOT 1
- Gatsby v3: Opening twice after build HOT 2
- Dependency Dashboard
- Gatsby4 support HOT 4
- Weird behavior with Gastby v3 : Only render-page.js is analyzed? HOT 2
- Bundle paths are picking up wrong scope HOT 1
- peer dep for Gatsby v5 compatibility need publish to npm HOT 2
- No matching version found for snyk@^2.0.0 after 1.1.4 upgrade HOT 3
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 gatsby-plugin-webpack-bundle-analyser-v2.