laravel-mix / laravel-mix

The power of webpack, distilled for the rest of us.
MIT License
5.27k stars 808 forks source link

The querystring package is deprecated #3235

Open robinheidrich opened 2 years ago

robinheidrich commented 2 years ago

Description:

When installing Laravel Mix, the following message appears (due to the use of node-libs-browser, which is also deprecated):

npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

Steps To Reproduce:

npm install laravel-mix

a-di-ez commented 2 years ago

same problem

bci24 commented 2 years ago

after doing an npm update on my project laravel 9.11 and laravel mix 6.0.43 the same warning...

roylaveto commented 2 years ago

Same issue here! More info:

  └─┬ laravel-mix@6.0.43
    └─┬ node-libs-browser@2.2.1
      └─┬ url@0.11.0
        └── querystring@0.2.0
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
aortegae commented 2 years ago

Same problem. Only works on mac, windows clients not working when you use multiple query strings from a useForm object from inertiajs, and then execute frmFilter.get( route('route.name') ), no errors, no warnings. Any idea?

JF-626164 commented 1 year ago

Issue is still active.

resuly commented 1 year ago

Just found a solution for me:

  1. Install the querystring-es3 package
npm install querystring-es3
  1. Add the resolve to the config file (webpack.min.js)
    mix.webpackConfig({
    "resolve": {
        "fallback": { "querystring": require.resolve("querystring-es3")}
    }
    })