css-loader icon indicating copy to clipboard operation
css-loader copied to clipboard

3.3.2 includes breaking change

Open zechdc opened this issue 6 years ago • 8 comments

  • Operating System: MacOS
  • Node Version: 6.9.1
  • NPM Version: 3.10.8
  • webpack Version: 1
  • css-loader Version: 3.3.2

Expected Behavior

We were using css-loader 3.3.0 without issue. Our integration/prod builds started breaking this morning with the following error.

09:11:58 ERROR in ./resources/assets/js/components/FormWalletPayButton.vue?vue&type=style&index=0&id=7d35c126&scoped=true&lang=scss& (./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/string-replace-webpack-plugin/loader.js?id=qga2ymzgxhwlw65jyga6k1emi!./resources/assets/js/components/FormWalletPayButton.vue?vue&type=style&index=0&id=7d35c126&scoped=true&lang=scss&) 09:11:58 Module build failed (from ./node_modules/css-loader/dist/cjs.js): 09:11:58 /node_modules/css-loader/dist/plugins/postcss-icss-parser.js:34 09:11:58 accumulator[normalizedUrl] = { ...accumulator[normalizedUrl], 09:11:58 ^^^ 09:11:58 SyntaxError: Unexpected token ...

zechdc avatar Dec 12 '19 17:12 zechdc

(same here)

jbrennan414 avatar Dec 12 '19 21:12 jbrennan414

Also experiencing the same behaviour on Windows 10, node 12.13.1. Pinning to css-loader @ 3.3.0 fixes the behavior.

jgoz avatar Dec 12 '19 23:12 jgoz

I see same behavior on RHEL 7, node 6.13.1. I had to pin css-loader version to 3.2.0.

pawaramol22 avatar Dec 13 '19 03:12 pawaramol22

It is not breaking change, please look at here https://github.com/webpack-contrib/css-loader/blob/master/package.json#L12, update your node version to 8

alexander-akait avatar Dec 13 '19 09:12 alexander-akait

I am having the same issue. @zechdc .. did you get any solution?

HimaChitalia avatar Dec 23 '19 20:12 HimaChitalia

We just downgraded to 3.3.0. Doubt we will try to fix it.

On Mon, Dec 23, 2019 at 12:18 PM Hima Chitalia [email protected] wrote:

I am having the same issue. @zechdc https://github.com/zechdc .. did you get any solution?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/webpack-contrib/css-loader/issues/1019?email_source=notifications&email_token=AADGFXOQXUIMMUVNUT6DENLQ2EMKHA5CNFSM4J2CKNJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHR3RVY#issuecomment-568572119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADGFXORTYLACBNUKE7DPCLQ2EMKHANCNFSM4J2CKNJA .

--

-- Thanks, Zechariah Campbell | Software Engineer

zechdc avatar Dec 23 '19 21:12 zechdc

I am having the same issue. @zechdc .. did you get any solution?

Chnage the css-loader version into 3.3.0.

ArunRamachandran avatar Feb 22 '20 19:02 ArunRamachandran

Same problem with 3.4.2

leoneed avatar Mar 08 '20 15:03 leoneed