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

chore(build): upgrade less-loader #19703

Merged
merged 1 commit into from
Apr 19, 2022
Merged

Conversation

ktmud
Copy link
Member

@ktmud ktmud commented Apr 13, 2022

SUMMARY

npm install starts to complain about incompatible peerDependencies:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: less-loader@5.0.0
npm ERR! Found: webpack@5.52.1
npm ERR! node_modules/webpack
npm ERR!   dev webpack@"^5.52.1" from the root project
npm ERR!   peerOptional webpack@">=4" from @cypress/react@5.10.1
npm ERR!   node_modules/@cypress/react
npm ERR!     dev @cypress/react@"^5.10.0" from the root project
npm ERR!   33 more (@storybook/addon-essentials, @storybook/addon-docs, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^2.0.0 || ^3.0.0 || ^4.0.0" from less-loader@5.0.0
npm ERR! node_modules/less-loader
npm ERR!   dev less-loader@"^5.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: webpack@4.46.0
npm ERR! node_modules/webpack
npm ERR!   peer webpack@"^2.0.0 || ^3.0.0 || ^4.0.0" from less-loader@5.0.0
npm ERR!   node_modules/less-loader
npm ERR!     dev less-loader@"^5.0.0" from the root project
npm ERR! 

Let's upgrade less-loader to fix it.

Also removing engine requirement in the eslint-plugin-theme-colors plugin as it's throwing unnecessary warnings.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

Tested locally and all CSS seems still work

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Apr 13, 2022

Codecov Report

Merging #19703 (95de193) into master (34008f7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #19703   +/-   ##
=======================================
  Coverage   66.51%   66.51%           
=======================================
  Files        1686     1686           
  Lines       64589    64589           
  Branches     6635     6635           
=======================================
  Hits        42959    42959           
  Misses      19931    19931           
  Partials     1699     1699           
Flag Coverage Δ
javascript 51.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34008f7...95de193. Read the comment docs.

@ktmud
Copy link
Member Author

ktmud commented Apr 14, 2022

/testenv up

@github-actions
Copy link
Contributor

@ktmud Ephemeral environment spinning up at http://35.89.103.133:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@ktmud ktmud force-pushed the upgrade-less-loader branch from 3d4abaa to 95de193 Compare April 14, 2022 16:11
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@ktmud ktmud merged commit 4ba62ca into apache:master Apr 19, 2022
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@codemaster08240328
Copy link
Contributor

@ktmud , after this update, I removed all my node modules, installed it again.
Then when I try to run frontend using npm run dev-server it throws an error:

ERROR in ./src/assets/stylesheets/antd/index.less (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].use[1]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[5].use[2]!./src/assets/stylesheets/antd/index.less)
Module build failed (from ./node_modules/less-loader/dist/cjs.js):


// @import './variable.less';
@import './@{root-entry-name}.less';
      ^
Variable @root-entry-name is undefined
      Error in /Volumes/Work/assignment/preset/superset/superset-frontend/node_modules/antd/lib/style/themes/index.less (line 7, column 8)

Can you please check it?

@ktmud
Copy link
Member Author

ktmud commented Apr 21, 2022

@codemaster08240328 did you modify ./src/assets/stylesheets/antd/index.less locally by any chance? I don't think the variable root-entry-name is in current Superset codebase.

@john-bodley john-bodley deleted the upgrade-less-loader branch June 8, 2022 05:32
philipher29 pushed a commit to ValtechMobility/superset that referenced this pull request Jun 9, 2022
@mistercrunch mistercrunch added 🍒 1.5.2 🍒 1.5.3 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.0.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/S 🍒 1.5.2 🍒 1.5.3 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants