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

Build load *module.less, shows resolve-url-loader warning #313

Closed
jaywcjlove opened this issue Dec 29, 2021 · 2 comments
Closed

Build load *module.less, shows resolve-url-loader warning #313

jaywcjlove opened this issue Dec 29, 2021 · 2 comments

Comments

@jaywcjlove
Copy link
Member

jaywcjlove commented Dec 29, 2021

resolve-url-loader: webpack misconfiguration
  webpack or the upstream loader did not supply a source-map

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

assets by chunk 1.66 MiB (name: main)
  asset static/js/bundle.js 1.65 MiB [emitted] (name: main) 1 related asset
  asset main.54b2d7e2bcb507688e74.hot-update.js 3.53 KiB [emitted] [immutable] [hmr] (name: main) 1 related asset
assets by path *.json 343 bytes
  asset asset-manifest.json 315 bytes [emitted]
  asset main.54b2d7e2bcb507688e74.hot-update.json 28 bytes [emitted] [immutable] [hmr]
asset index.html 1.3 KiB [emitted]
Entrypoint main 1.66 MiB (1.59 MiB) = static/js/bundle.js 1.65 MiB main.54b2d7e2bcb507688e74.hot-update.js 3.53 KiB 2 auxiliary assets
cached modules 1.46 MiB [cached] 123 modules
runtime modules 28.2 KiB 13 modules
../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[10].use[1]!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[10].use[2]!../../node_modules/resolve-url-loader/index.js??ruleSet[1].rules[1].oneOf[10].use[3]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[10].use[4]!./src/routes/home/index.module.less 547 bytes [built] [code generated] [1 warning]

WARNING in ./src/routes/home/index.module.less (../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[10].use[1]!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[10].use[2]!../../node_modules/resolve-url-loader/index.js??ruleSet[1].rules[1].oneOf[10].use[3]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[10].use[4]!./src/routes/home/index.module.less)
Module Warning (from ../../node_modules/resolve-url-loader/index.js):
resolve-url-loader: webpack misconfiguration
  webpack or the upstream loader did not supply a source-map
 @ ./src/routes/home/index.module.less 8:6-434 22:17-24 26:7-21 58:25-39 59:36-47 59:50-64 63:6-73:7 64:54-65 64:68-82 70:42-53 70:56-70 72:21-28 83:0-404 83:0-404 84:22-29 84:33-47 84:50-64 61:4-74:5
 @ ./src/routes/home/index.jsx 5:0-41 9:15-29
 @ ./src/routers.jsx 8:0-33 37:34-38 44:34-38
 @ ./src/App.jsx 8:0-35 13:28-34
 @ ./src/index.jsx 7:0-24 12:35-38

1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.65.0 compiled with 1 warning in 282 ms
@jaywcjlove
Copy link
Member Author

⚠️ An empty *module.less file will have this warning.

@woowalker
Copy link

still an issue in react 18?
image
image

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

No branches or pull requests

2 participants