-
Notifications
You must be signed in to change notification settings - Fork 208
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
Revert "Update to PostCSS 8" #322
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit a1bd525.
donaldkibet
approved these changes
Feb 11, 2022
Error: Error while trying to collect info after merging revert-308-update_postcss into master. Error: Command failed: npx lerna run build lerna notice cli v3.22.1 lerna info ci enabled lerna info Executing command in 19 packages: "yarn run build" lerna info run Ran npm script 'build' in '@openmrs/esm-state' in 9.1s: lerna info run Ran npm script 'build' in '@openmrs/esm-globals' in 9.5s: lerna info run Ran npm script 'build' in '@openmrs/esm-breadcrumbs' in 10.7s: lerna info run Ran npm script 'build' in '@openmrs/esm-utils' in 11.1s: lerna info run Ran npm script 'build' in '@openmrs/esm-config' in 10.8s: lerna info run Ran npm script 'build' in '@openmrs/esm-error-handling' in 10.7s: lerna info run Ran npm script 'build' in '@openmrs/esm-api' in 8.2s: lerna info run Ran npm script 'build' in '@openmrs/esm-extensions' in 7.5s: lerna info run Ran npm script 'build' in '@openmrs/esm-react-utils' in 11.5s: lerna ERR! yarn run build exited 1 in '@openmrs/esm-styleguide' lerna ERR! yarn run build stdout: yarn run v1.22.17 $ webpack --mode=production assets by status 61.7 KiB �[1m�[32m[cached]�[39m�[22m 1 asset orphan modules 8.46 MiB �[1m�[33m[orphan]�[39m�[22m 435 modules runtime modules 1.1 KiB 3 modules built modules 84.5 KiB �[1m�[33m[built]�[39m�[22m modules by path �[1m./src/�[39m�[22m 48.2 KiB modules by path �[1m./src/icons/�[39m�[22m 11.5 KiB 23 modules modules by path �[1m./src/logo/�[39m�[22m 21.2 KiB 4 modules javascript modules 15.4 KiB 2 modules modules by path �[1m../�[39m�[22m 36.2 KiB modules by path �[1m../../../node_modules/systemjs-webpack-interop/�[39m�[22m 3.08 KiB 3 modules �[1m../esm-config/dist/openmrs-esm-module-config.js�[39m�[22m 27.7 KiB �[1m�[33m[built]�[39m�[22m �[1m�[33m[code generated]�[39m�[22m �[1m../esm-state/dist/openmrs-esm-state.js�[39m�[22m 5.41 KiB �[1m�[33m[built]�[39m�[22m �[1m�[33m[code generated]�[39m�[22m �[1mexternal "react"�[39m�[22m 42 bytes �[1m�[33m[built]�[39m�[22m �[1m�[33m[code generated]�[39m�[22m �[1mexternal "react-dom"�[39m�[22m 42 bytes �[1m�[33m[built]�[39m�[22m �[1m�[33m[code generated]�[39m�[22m �[1mexternal "rxjs"�[39m�[22m 42 bytes �[1m�[33m[built]�[39m�[22m �[1m�[33m[code generated]�[39m�[22m �[1mexternal "@openmrs/esm-extensions"�[39m�[22m 42 bytes �[1m�[33m[built]�[39m�[22m �[1m�[33m[code generated]�[39m�[22m �[1mLOG from ../../../node_modules/sass-loader/dist/cjs.js sass-loader ../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./src/_all.scss�[39m�[22m �[1m�[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mRecommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mMore info and automated migrator: https://sass-lang.com/d/slash-div�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_convert.scss 25:12 carbon--rem()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 16:23 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 8:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/_css--reset.scss 9:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/_helper-mixins.scss 23:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/_theme.scss 8:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/styles.scss 67:9 @import�[39m�[22m �[1m�[33msrc/_all.scss 2:9 root stylesheet�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mRecommendation: math.div($step - 2, 4) or calc(($step - 2) / 4)�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mMore info and automated migrator: https://sass-lang.com/d/slash-div�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 20:53 carbon--get-type-size()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 31:17 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 10:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/_css--reset.scss 9:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/_helper-mixins.scss 23:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/_theme.scss 8:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/styles.scss 67:9 @import�[39m�[22m �[1m�[33msrc/_all.scss 2:9 root stylesheet�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mRecommendation: math.div($width - (2 * $margin), $columns) or calc(($width - (2 * $margin)) / $columns)�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mMore info and automated migrator: https://sass-lang.com/d/slash-div�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_key-height.scss 27:13 carbon--get-column-width()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_key-height.scss 38:5 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/layout.scss 12:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/_layout.scss 9:9 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/styles.scss 69:9 @import�[39m�[22m �[1m�[33msrc/_all.scss 2:9 root stylesheet�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mRecommendation: math.div($carbon--grid-gutter, 2) or calc($carbon--grid-gutter / 2)�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mMore info and automated migrator: https://sass-lang.com/d/slash-div�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 328:27 @content�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 236:5 @content�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 143:7 carbon--breakpoint-up()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 235:3 carbon--breakpoint()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 327:7 carbon--make-container()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 371:5 carbon--grid()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 43:5 grid()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 48:3 @content�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/import-once/import-once.scss 23:5 exports()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 47:1 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/styles.scss 78:9 @import�[39m�[22m �[1m�[33msrc/_all.scss 2:9 root stylesheet�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mRecommendation: math.div($carbon--grid-gutter, 2) or calc($carbon--grid-gutter / 2)�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mMore info and automated migrator: https://sass-lang.com/d/slash-div�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 329:26 @content�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 236:5 @content�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 143:7 carbon--breakpoint-up()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 235:3 carbon--breakpoint()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 327:7 carbon--make-container()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 371:5 carbon--grid()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 43:5 grid()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 48:3 @content�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/import-once/import-once.scss 23:5 exports()�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 47:1 @import�[39m�[22m �[1m�[33m../../../node_modules/carbon-components/scss/globals/scss/styles.scss 78:9 @import�[39m�[22m �[1m�[33msrc/_all.scss 2:9 root stylesheet�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33m38 repetitive deprecation warnings omitted.�[39m�[22m �[1m�[33m�[39m�[22m �[1m�[33mnull�[39m�[22m �[1m�[31mERROR�[39m�[22m in �[1m./src/_all.scss�[39m�[22m (./src/_all.scss.webpack[javascript/auto]!=!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./src/_all.scss) �[1mModule build �[1m�[31mfailed�[39m�[22m�[1m (from ../../../node_modules/postcss-loader/dist/cjs.js): �[1m�[31mError�[39m�[22m�[1m: PostCSS plugin autoprefixer requires PostCSS 8. Migration guide for end-users: https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users at Processor.normalize (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/processor.js:153:15) at new Processor (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/processor.js:56:25) at postcss (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/postcss.js:55:10) at Object.loader (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss-loader/dist/index.js:96:17)�[39m�[22m @ ./src/_all.scss �[1m�[31mERROR�[39m�[22m in �[1m./src/_all.scss�[39m�[22m �[1mModule build �[1m�[31mfailed�[39m�[22m�[1m (from ../../../node_modules/mini-css-extract-plugin/dist/loader.js): HookWebpackError: Module build �[1m�[31mfailed�[39m�[22m�[1m (from ../../../node_modules/postcss-loader/dist/cjs.js): �[1m�[31mError�[39m�[22m�[1m: PostCSS plugin autoprefixer requires PostCSS 8. Migration guide for end-users: https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users at Processor.normalize (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/processor.js:153:15) at new Processor (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/processor.js:56:25) at postcss (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/postcss.js:55:10) at Object.loader (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss-loader/dist/index.js:96:17) at tryRunOrWebpackError (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/HookWebpackError.js:88:9) at __webpack_require_module__ (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/Compilation.js:4979:12) at __webpack_require__ (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/Compilation.js:4936:18) at /home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/Compilation.js:5007:20 at symbolIterator (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/neo-async/async.js:3485:9) at done (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/neo-async/async.js:3527:9) at Hook.eval [as callAsync] (eval at create (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1) at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14) at /home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/Compilation.js:4914:43 at symbolIterator (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/neo-async/async.js:3482:9) -- inner �[1m�[31merror�[39m�[22m�[1m -- �[1m�[31mError�[39m�[22m�[1m: Module build �[1m�[31mfailed�[39m�[22m�[1m (from ../../../node_modules/postcss-loader/dist/cjs.js): �[1m�[31mError�[39m�[22m�[1m: PostCSS plugin autoprefixer requires PostCSS 8. Migration guide for end-users: https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users at Processor.normalize (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/processor.js:153:15) at new Processor (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/processor.js:56:25) at postcss (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/postcss.js:55:10) at Object.loader (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss-loader/dist/index.js:96:17) at Object. (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/css-loader/dist/cjs.js!/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss-loader/dist/cjs.js!/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/sass-loader/dist/cjs.js!/home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/framework/esm-styleguide/src/_all.scss:1:7) at /home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:432:11 at Hook.eval [as call] (eval at create (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), :7:1) at Hook.CALL_DELEGATE [as _call] (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/node_modules/tapable/lib/Hook.js:14:14) at /home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/Compilation.js:4981:39 at tryRunOrWebpackError (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/HookWebpackError.js:83:7) at __webpack_require_module__ (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/Compilation.js:4979:12) at __webpack_require__ (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/Compilation.js:4936:18) at /home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/webpack/lib/Compilation.js:5007:20 at symbolIterator (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/neo-async/async.js:3485:9) Generated code for /home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/css-loader/dist/cjs.js!/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss-loader/dist/cjs.js!/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/sass-loader/dist/cjs.js!/home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/framework/esm-styleguide/src/_all.scss 1 | throw new �[1m�[31mError�[39m�[22m�[1m("Module build �[1m�[31mfailed�[39m�[22m�[1m (from ../../../node_modules/postcss-loader/dist/cjs.js):\nError: PostCSS plugin autoprefixer requires PostCSS 8.\nMigration guide for end-users:\nhttps://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users\n at Processor.normalize (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/processor.js:153:15)\n at new Processor (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/processor.js:56:25)\n at postcss (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss/lib/postcss.js:55:10)\n at Object.loader (/home/runner/work/openmrs-esm-core/openmrs-esm-core/node_modules/postcss-loader/dist/index.js:96:17)");�[39m�[22m webpack 5.64.1 compiled with �[1m�[31m2 errors�[39m�[22m in 73707 ms info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. lerna ERR! yarn run build stderr: Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating error Command failed with exit code 1. lerna ERR! yarn run build exited 1 in '@openmrs/esm-styleguide' at ChildProcess.exithandler (node:child_process:397:12) at ChildProcess.emit (node:events:394:28) at maybeClose (node:internal/child_process:1067:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) Generated by @jsenv/file-size-impact during Report bundle size#1827864480 on 48a761d |
Well that quite clearly failed to fix the problem. Re-opening the other PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reverts #308