Skip to content
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

Incompatible with Webpack 5 due to Buffer dependency #1029

Closed
csvan opened this issue Oct 14, 2020 · 65 comments
Closed

Incompatible with Webpack 5 due to Buffer dependency #1029

csvan opened this issue Oct 14, 2020 · 65 comments
Labels

Comments

@csvan
Copy link

csvan commented Oct 14, 2020

Webpack 5 removes Buffer (see https://webpack.js.org/migrate/5/), effectively breaking this library since it has explicit usages of it in the code.

@gilberto1991
Copy link

I also have this problem

@GregdTd
Copy link

GregdTd commented Dec 8, 2020

Same here, any news @diegomura ?

@GregdTd
Copy link

GregdTd commented Dec 8, 2020

I was finally able to make it works..
npm install assert browserify-zlib buffer process stream-browserify util

Then in my webpack config:

const webpack = require('webpack');

module.exports = {
 {...}
    resolve: {
        alias: {
            process: 'process/browser',
            stream: "stream-browserify",
            zlib: "browserify-zlib"
        }
    },
    plugins: [
        new webpack.ProvidePlugin({
            process: 'process/browser',
            Buffer: ['buffer', 'Buffer'],
        }),
    ]
}

@matheusgrieger
Copy link

@GregdTd that didn't work for me though...

@csvan
Copy link
Author

csvan commented Dec 19, 2020

@matheusgrieger I solved it in the same way. What error are you getting? What if you add buffer under resolve.fallback as well or instead of resolve.alias?

@matheusgrieger
Copy link

@csvan tried that but didn't work. Actually my error was being caused by a state update in another component while the PDF was rendering. Though it didn't change anything at all about the PDF content, it was crashing the app.

Some context would be good, too. I'm running React PDF in Electron and don't even need these fallbacks at all...

@mstrk
Copy link

mstrk commented Jan 19, 2021

@matheusgrieger I also made it work with resolve.fallback but did not had to install buffer for example. and I think @GregdTd is missing some alias like assert and util that where installed.

I know that it's probably late and you already fixed it or move on, but if you have some error log to show us, then we could help you debug that.

@matheusgrieger
Copy link

@mstrk I will happily get some logs to help you debug. But won't be possible for now though, as I have to change the way I wired up the app.

@osimuka
Copy link

osimuka commented Feb 19, 2021

I was finally able to make it works..
npm install assert browserify-zlib buffer process stream-browserify util

Then in my webpack config:

const webpack = require('webpack');

module.exports = {
 {...}
    resolve: {
        alias: {
            process: 'process/browser',
            stream: "stream-browserify",
            zlib: "browserify-zlib"
        }
    },
    plugins: [
        new webpack.ProvidePlugin({
            process: 'process/browser',
            Buffer: ['buffer', 'Buffer'],
        }),
    ]
}

After doing the above I get this error:

TypeError: Buffer.isBuffer is not a function
    at PDFDocument._write (pdfkit.browser.es.js:4190)
    at new PDFDocument (pdfkit.browser.es.js:4085)
    at Root._callee$ (react-pdf.browser.es.js:185)
    at tryCatch (runtime.js:63)
    at Generator.invoke [as _invoke] (runtime.js:293)
    at Generator.eval [as next] (runtime.js:118)
    at asyncGeneratorStep (asyncToGenerator.js:3)
    at _next (asyncToGenerator.js:25)
    at eval (asyncToGenerator.js:32)

@knoefel
Copy link

knoefel commented Feb 19, 2021

@osimuka In my setup (nx monorepo) i also had to add the following line in polyfills.ts:

(window as any)['global'] = window;

I guess you can also add this line in your index.html in a script tag, if you don't have a polyfill file available.

@mstrk
Copy link

mstrk commented Feb 19, 2021

@osimuka can you remove process: 'process/browser', line and uninstall buffer? also instead of using alias use resolve.fallback

something like this:

{
 {...}
    resolve: {
        fallback: {
            util: require.resolve('util/'),
            assert: require.resolve('assert/'),
            stream: require.resolve('stream-browserify'),
            zlib: require.resolve('browserify-zlib'),
        },
    },
    plugins: [
        new webpack.ProvidePlugin({
             Buffer: ['buffer', 'Buffer'],
             process: 'process/browser',
        }),
    ],
}

hope it helps, cheers 🖖

@osimuka
Copy link

osimuka commented Feb 19, 2021

@osimuka In my setup (nx monorepo) i also had to add the following line in polyfills.ts:

(window as any)['global'] = window;

I guess you can also add this line in your index.html in a script tag, if you don't have a polyfill file available.

I'm using react17, with webpack5

I did this:

<script>
    var global = window;
  </script>
DecodeStream.js:32 Uncaught TypeError: Cannot read property 'prototype' of undefined
    at eval (DecodeStream.js:32)
    at Object.eval (DecodeStream.js:99)
    at eval (DecodeStream.js:103)
    at Object../node_modules/restructure/src/DecodeStream.js (bundle.js:9841)
    at __webpack_require__ (bundle.js:10681)
    at fn (bundle.js:10912)
    at Object.eval (Number.js:7)
    at eval (Number.js:106)
    at Object../node_modules/restructure/src/Number.js (bundle.js:9881)
    at __webpack_require__ (bundle.js:10681)

@osimuka
Copy link

osimuka commented Feb 19, 2021

@osimuka can you remove process: 'process/browser', line and uninstall buffer? also instead of using alias use resolve.fallback

something like this:

{
 {...}
    resolve: {
        fallback: {
            util: require.resolve('util/'),
            assert: require.resolve('assert/'),
            stream: require.resolve('stream-browserify'),
            zlib: require.resolve('browserify-zlib'),
        },
    },
    plugins: [
        new webpack.ProvidePlugin({
             Buffer: ['buffer', 'Buffer'],
             process: 'process/browser',
        }),
    ],
}

hope it helps, cheers 🖖

I have tried that, I got

DecodeStream.js:32 Uncaught TypeError: Cannot read property 'prototype' of undefined
    at eval (DecodeStream.js:32)
    at Object.eval (DecodeStream.js:99)
    at eval (DecodeStream.js:103)
    at Object../node_modules/restructure/src/DecodeStream.js (bundle.js:9841)
    at __webpack_require__ (bundle.js:10681)
    at fn (bundle.js:10912)
    at Object.eval (Number.js:7)
    at eval (Number.js:106)
    at Object../node_modules/restructure/src/Number.js (bundle.js:9881)
    at __webpack_require__ (bundle.js:10681)

@mstrk
Copy link

mstrk commented Feb 19, 2021

@osimuka did you remove this?

<script>
    var global = window;
  </script>

and have util, assert, stream-browserify, browserify-zlib and process installed right? just checking

I don’t have buffer installed. But you might try both variations.

I think you have a mismatch of libs installed for what some of your other packages expect. If you check this line on DecodeStream.js it expects a buffer object to work with, and this might not be the same object that is being passed.

EDIT: I do have browserify-zlib installed.

@osimuka
Copy link

osimuka commented Feb 19, 2021

@osimuka did you remove this?

<script>
    var global = window;
  </script>

and have util, assert, stream-browserify, browserify-zlib and process installed right? just checking

I don’t have buffer installed. But you might try both variations.

I think you have a mismatch of libs installed for what some of your other packages expect. If you check this line on DecodeStream.js it expects a buffer object to work with, and this might not be the same object that is being passed.

EDIT: I do have browserify-zlib installed.

I have the modules util, assert, stream-browserify, browserify-zlib and process installed, however I have uninstalled buffer and I get the error

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
        - install 'buffer'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "buffer": false }

Once I install buffer npm install buffer , it complies fine

I get this error on the browser with Buffer: ['buffer', 'Buffer'], removed

DecodeStream.js:31 Uncaught ReferenceError: Buffer is not defined
    at eval (DecodeStream.js:31)

Once I put it back, I get this error:

DecodeStream.js:32 Uncaught TypeError: Cannot read property 'prototype' of undefined

And I have also removed

<script>
  var global = window;
</script>

@mstrk
Copy link

mstrk commented Feb 19, 2021

@osimuka do what webpack ask you to do. if you install buffer add it to fallback.

add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }

and don't remove:

Buffer: ['buffer', 'Buffer'],

@osimuka
Copy link

osimuka commented Feb 19, 2021

@osimuka do what webpack ask you to do. if you install buffer add it to fallback.

add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }

and don't remove:

Buffer: ['buffer', 'Buffer'],

I made the changes, this is the error that happens on compile time

There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
<path>/node_modules/restructure/src/Buffer.js
    Used by 53 module(s), i. e.
    <path>/node_modules/@react-pdf/renderer/dist/react-pdf.browser.es.js
<path>/node_modules/restructure/src/buffer.js
    Used by 12 module(s), i. e.
   <path>/node_modules/restructure/src/EncodeStream.js```

@mstrk
Copy link

mstrk commented Feb 19, 2021

@osimuka hmmm, you have multiple modules defined.

I think you can’t define and fallback at the same time, I would have to search the docs in webpack. I would suggest you remove the Buffer key from ProvidePlugin, or change it to buffer: 'buffer', but I have no idea. This will probably put you back at the point where you have mismatch modules from the consuming libs.

sorry for not being much help.

cheers🖖

@osimuka
Copy link

osimuka commented Feb 20, 2021

@osimuka hmmm, you have multiple modules defined.

I think you can’t define and fallback at the same time, I would have to search the docs in webpack. I would suggest you remove the Buffer key from ProvidePlugin, or change it to buffer: 'buffer', but I have no idea. This will probably put you back at the point where you have mismatch modules from the consuming libs.

sorry for not being much help.

cheers🖖

Yah I tried that, but it gave the error Buffer.isBuffer is not a function 🤦
Thanks for the help. I may have to revisit the library another time as I'm short for time to accomplish a new feature

@ECWireless
Copy link

I'm getting the same error as initially mentioned, but still no luck after reading through all this. Would be awesome if this is continually looked into.

@gzhytar
Copy link

gzhytar commented Feb 26, 2021

This StackOverflow answer solved it for me: https://stackoverflow.com/a/65556946/15291780. To be specific, here is how different configs look like:

webpack.config.js
var webpack = require('webpack'); const NodePolyfillPlugin = require('node-polyfill-webpack-plugin') ... resolve: { fallback: { "assert": require.resolve("assert") } ... plugins: [ ... // needed to provide support for Polyfill which was part of default Webpack 4 but was removed in 5 new NodePolyfillPlugin(), new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify(process.env.NODE_ENV || 'development') } }) ... ]

Imported packages in package.json (I use VS2019 Community Edition):
"dependencies": { ... "node-polyfill-webpack-plugin": "1.0.3", "assert": "2.0.0" ... }

@ECWireless
Copy link

Hmm, still not working for me. I'm using snowpack, though, which may be why. Here is what my snowpack.config.js file looks like:

const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")

// @ts-nocheck
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
  mount: {
    public: {url: '/', static: true},
    src: {url: '/dist'},
  },
  plugins: [
    '@snowpack/plugin-react-refresh',
    '@snowpack/plugin-dotenv',
    '@snowpack/plugin-typescript',
    [
      '@snowpack/plugin-webpack', {
        extendConfig: (config) => {
          config.plugins.push(new NodePolyfillPlugin());
          return config;
        }
      }
    ],
    ['snowpack-plugin-svgr', {
      htmlMinifierOptions: false, // disabled entirely,
    }]
  ],
...

And still getting the same error.

@gzhytar
Copy link

gzhytar commented Mar 2, 2021

@ECWireless, after I was experimenting with all the different modules and plugins, my 'node_modules' folder got bloated and random issues appeared. What helped me is to delete 'node_modules' and restore only needed packages from config. Maybe something that would help you as well.

@diegomura diegomura added the bug label Apr 5, 2021
@maxdev
Copy link

maxdev commented Apr 7, 2021

I was finally able to make it works..
npm install assert browserify-zlib buffer process stream-browserify util

Then in my webpack config:

const webpack = require('webpack');

module.exports = {
 {...}
    resolve: {
        alias: {
            process: 'process/browser',
            stream: "stream-browserify",
            zlib: "browserify-zlib"
        }
    },
    plugins: [
        new webpack.ProvidePlugin({
            process: 'process/browser',
            Buffer: ['buffer', 'Buffer'],
        }),
    ]
}

This solution actually works for me for Webpack 5.21.2

@diegomura but I suppose it should be also fixed in version 2.0.0?

@GregdTd
Copy link

GregdTd commented May 4, 2021

Hello hello @diegomura,
FYI after upgrading to the 2.0.12 version today I got the following warning from webpack:
image

Again I resolved it with:

    resolve: {
        extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
        plugins: [new TsconfigPathsPlugin()],
        alias: {
            process: 'process/browser',
            stream: "stream-browserify",
            zlib: "browserify-zlib",
            path: "path-browserify"
        },
        fallback: {
            fs: false,
            crypto: false //<----- adding this line removed the warning
        }
    },

@j0nezz
Copy link

j0nezz commented May 12, 2021

If anyone stumbles accross this using Next.js, you only need to add an alias for stream and zlib since Next.js already polyfills Buffer.

This config in next.config.js worked for me:

module.exports = {
 //...
webpack: (config) => {

    config.resolve.alias.stream = 'stream-browserify';
    config.resolve.alias.zlib = 'browserify-zlib';

    return config;
  },
}

@jeetiss
Copy link
Collaborator

jeetiss commented Dec 19, 2021

I googled the issue text and found this https://stackoverflow.com/a/47632275

looks like the problem is not in webpack config

@mohamedaliznidi
Copy link

hello @jeetiss i tryied to run my project with the exact config of the instruction but still having th same error ,

here is a link to the repo i used form my last test
https://github.com/mohamedaliznidi/pdfReader-issue

@violeta-cizikas
Copy link

@j0nezz thank you! Greatly helped! : >

@bezchristo
Copy link

bezchristo commented Jan 1, 2022

I'm getting the same issue as @baonguyen2411.

Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
    at __extends (bundle.js:165215)
    at bundle.js:165231
    at Object.<anonymous> (bundle.js:165369)
    at Object../node_modules/@react-pdf/fontkit/node_modules/restructure/src/EncodeStream.js (bundle.js:165372)
    at Object.options.factory (bundle.js:504623)
    at __webpack_require__ (bundle.js:504038)
    at fn (bundle.js:504294)
    at Object.<anonymous> (bundle.js:164771)
    at Object../node_modules/@react-pdf/fontkit/node_modules/restructure/index.js (bundle.js:164797)
    at Object.options.factory (bundle.js:504623)

I followed these instructions and have all the fallbacks setup but still getting this.

@aymanxdev
Copy link

Can we find a way to fix this so it doesn't require modifying the webpack.config file?

@vtrphan
Copy link

vtrphan commented Feb 17, 2022

i also got the Buffer is not defined error despite having tried all of the recommended work arounds.... I'm using create-react-app v5. There must be a solution without requiring to modify the webpack config?

@wwww09z
Copy link

wwww09z commented Feb 25, 2022

I'm getting the same issue as @baonguyen2411.

Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
    at __extends (bundle.js:165215)
    at bundle.js:165231
    at Object.<anonymous> (bundle.js:165369)
    at Object../node_modules/@react-pdf/fontkit/node_modules/restructure/src/EncodeStream.js (bundle.js:165372)
    at Object.options.factory (bundle.js:504623)
    at __webpack_require__ (bundle.js:504038)
    at fn (bundle.js:504294)
    at Object.<anonymous> (bundle.js:164771)
    at Object../node_modules/@react-pdf/fontkit/node_modules/restructure/index.js (bundle.js:164797)
    at Object.options.factory (bundle.js:504623)

I followed these instructions and have all the fallbacks setup but still getting this.

Yes, I also got the exact same issue and cannot resolve it @jeetiss

@Sasurtio
Copy link

Sasurtio commented Feb 25, 2022

@wwww09z @baonguyen2411
I'm assuming you are using Windows or MacOS in a non-case sensitive partition

You could try to add this rule to your webpack file

{
  test: /restructure\/src\/[^w].js/,
  use: [
    {
      loader: "imports-loader",
      options: {
        type: "commonjs",
        imports: "multiple ../../buffer/ Buffer Buffer",
      },
    },
  ],
}

In my case (using NextJS 12), it looks like this
image

With that configuration you will force your restructure module to import the correct buffer from node_modules instead of trying to import a inner file of that library

EDIT:

If you don't already have it, you have to install imports-loader as a dev dependency, so webpack can use it as loader
https://webpack.js.org/loaders/imports-loader/#getting-started

@wwww09z
Copy link

wwww09z commented Feb 28, 2022

@wwww09z @baonguyen2411 I'm assuming you are using Windows or MacOS in a non-case sensitive partition

You could try to add this rule to your webpack file

{
  test: /restructure\/src\/[^w].js/,
  use: [
    {
      loader: "imports-loader",
      options: {
        type: "commonjs",
        imports: "multiple ../../buffer/ Buffer Buffer",
      },
    },
  ],
}

In my case (using NextJS 12), it looks like this image

With that configuration you will force your restructure module to import the correct buffer from node_modules instead of trying to import a inner file of that library

EDIT:

If you don't already have it, you have to install imports-loader as a dev dependency, so webpack can use it as loader https://webpack.js.org/loaders/imports-loader/#getting-started

@Sasurtio Thanks for your suggestion. Yes, im using macOS, but unfortunately, it still getting the same error after installing and configuring the imports-loader. So sad...

@Sasurtio
Copy link

@Sasurtio Thanks for your suggestion. Yes, im using macOS, but unfortunately, it still getting the same error after installing and configuring the imports-loader. So sad...

Are you using yarn or another package manager?
Have you installed buffer library?

Could you provide your webpack.config?

@wwww09z
Copy link

wwww09z commented Feb 28, 2022

@Sasurtio Thanks for your suggestion. Yes, im using macOS, but unfortunately, it still getting the same error after installing and configuring the imports-loader. So sad...

Are you using yarn or another package manager? Have you installed buffer library?

Could you provide your webpack.config?

Sure, yep, my project is using react and Im using yarn and have installed buffer.
My webpack.config.js is currently like this:

const webpack = require("webpack");

module.exports = {
  {...},
  plugins: [
    new webpack.ProvidePlugin({
      Buffer: ["buffer", "Buffer"],
      process: "process/browser",
    }),
  ],
  module: {
    rules: [
      {
        test: /restructure\/src\/[^w].js/,
        use: {
          loader: "imports-loader",
          options: {
            type: "commonjs",
            imports: "multiple ../../buffer/ Buffer buffer",
          },
        },
      },
    ],
  },
  resolve: {
    modules: ["src", "node_modules"],
    extensions: [".js"],
    fallback: {
      process: require.resolve("process/browser"),
      zlib: require.resolve("browserify-zlib"),
      stream: require.resolve("stream-browserify"),
      util: require.resolve("util"),
      buffer: require.resolve("buffer"),
      asset: require.resolve("assert"),
    },
  },
};

@wwww09z
Copy link

wwww09z commented Mar 1, 2022

Just for guys who have the same issue as mine and cannot resolve it after trying everything. I used the final solution which is to downgrade the Webpack from 5 to 4, then the issue resolved. This is not a solution actually, but just put here as an idea.

@Sasurtio
Copy link

Sasurtio commented Mar 2, 2022

@wwww09z Sorry to hear that. I think there should be a way to resolve this issue without adding a case-sensitive partition and moving your project there (BTW, if you want to use webpack 5 ASAP this should be the way to go)

Can you provide me more info? like if its CRA, Vite or using another library to generate the project?

Or could you provide me a mini repo where you can reproduce the issue? (For example creating one from scratch, copying the relevant config from your actual repo and only adding a component where you use this library and the error comes up)

@yubinjodev
Copy link

yubinjodev commented Mar 3, 2022

@wwww09z which webpact version did you install? im trying to downgrade my webpack but version 4.0.0 is stil giving me the error

@baonguyen2411
Copy link

Hi @ALL, currently I have resolved the problem and I'm using Window, this is my Webpack 5 config
I hope it can help someone
image

@yubinjodev
Copy link

yubinjodev commented Mar 3, 2022

@baonguyen2411 could you paste the code please >.< also what npm packages did you install for this? And is this webpack config or craco config? im getting zlib bindings error T_T

@Sasurtio
Copy link

Sasurtio commented Mar 3, 2022

@baonguyen2411 Have you changed case sensitivity in your folder?
Because with that exact same config i had the error, only after i setted the case sensitive to true and reinstalled node_modules it worked with webpack 5 and that config

@wwww09z
Copy link

wwww09z commented Mar 3, 2022

Hi @Sasurtio , thanks, if I still need to use webpack 5, I will try to create a mini repo later and let you know.

@yubinitdadev , here are the webpack and related packages' versions:

"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.11.0",
"webpack-manifest-plugin": "^4.0.2"

@Sasurtio
Copy link

Sasurtio commented Mar 4, 2022

@wwww09z when you have time could you try this rule instead of the other?
After a test in another machine (a Mac with Big Sur installed) I realized that i had an error in the regex. I accidentally deleted a "+" sign after [^w], so it wasn't finding anything with more than 1 letter before the .js extension

Also added backslash routes support (windows without WSL will need it)

{
  test: /restructure(\/|\\)src(\/|\\)[\w]+.js/,
  use: [
    {
      loader: "imports-loader",
      options: {
        type: "commonjs",
        imports: "multiple ../../buffer/ Buffer Buffer",
      },
    },
  ],
}

Here is the regex test that demonstrates the effectivity of this regex file searching:

https://regex101.com/r/MZ7M1o/1

Let me know if it worked!

@luispolippo
Copy link

luispolippo commented Mar 5, 2022

Hi @Sasurtio. I have the exactly same problem that @wwww09z and i solved with your help.
With the correct regex it works perfectly.
Thanks 😄

@sohee-K
Copy link

sohee-K commented Jun 14, 2022

@Sasurtio Hi, I finally solved this issue that @baonguyen2411 first posed thanks to your code! Thanks a lot 😄

@WilliamPhilippe
Copy link

Follow this: https://stackoverflow.com/questions/63729455/hosted-images-with-react-pdf/72744600#72744600
It worked for me

@kimberleyrogers
Copy link

kimberleyrogers commented Jul 24, 2022

Agonised for hours but eventually found this guide which fixed it for me. I had an extra issues (browserify-zlib) but resolved it using the same principle (adding to config-overrides.js and installing)
https://www.alchemy.com/blog/how-to-polyfill-node-core-modules-in-webpack-5

@erwanriou
Copy link

@WilliamPhilippe Yes for me as well

@NathanFirmo
Copy link

I was finally able to make it works.. npm install assert browserify-zlib buffer process stream-browserify util

Then in my webpack config:

const webpack = require('webpack');

module.exports = {
 {...}
    resolve: {
        alias: {
            process: 'process/browser',
            stream: "stream-browserify",
            zlib: "browserify-zlib"
        }
    },
    plugins: [
        new webpack.ProvidePlugin({
            process: 'process/browser',
            Buffer: ['buffer', 'Buffer'],
        }),
    ]
}

For me, it works running this:

npm install assert buffer process stream-browserify util @react-pdf/zlib

and changing webpack config to:

const webpack = require('webpack')

module.exports = {
    plugins: [
      new webpack.ProvidePlugin({
        Buffer: ['buffer', 'Buffer'],
      }),
      new webpack.ProvidePlugin({
        process: 'process/browser',
      }),
    ],
    resolve: {
      fallback: {
        zlib: require.resolve('@react-pdf/zlib'),
        stream: require.resolve('stream-browserify'),
        buffer: require.resolve('buffer'),
      },
    },
  }

@ijash
Copy link

ijash commented Jun 15, 2023

please re-open this thread as CRA now uses webpack 5 as the default install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests