Skip to content

DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic #666

Closed
@cfv1984

Description

@cfv1984

Hi all! I made a new webpack-simple project, and when running npm run build I get presented with the message in the title. Specifically:

404s will fallback to /index.html
webpack: wait until bundle finished: /dist/build.js
(node:568) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.

This is visible when using performance: { hints: "warning" } in your webpack config.

Additionally, doing an npm run dev I get this warning text:

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (250 kB).
This can impact web performance.
Assets: 
  build.js (1.55 MB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (250 kB). This can impact web performance.
Entrypoints:
  main (1.55 MB)
      build.js


WARNING in webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

What can be done about any of this two things? This is coming from a plain new vue init webpack-simple $myproject build, not something particularly involved and I'm not sure it is intentional

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions