Less-loader error
See original GitHub issueI tried to switch from the semantic-ui-less
to fomantic-ui-less
and I hoped for it to be seamless. However, I get an error from the less-loader
:
ERROR in ./node_modules/fomantic-ui-less/semantic.less (./node_modules/css-loader!./node_modules/less-loader/dist/cjs.js!./node_modules/fomantic-ui-less/semantic.less)
Module build failed (from ./node_modules/less-loader/dist/cjs.js):
@isDark : @colors[@@color][isDark];
@_labelColor : @colors[@@color][color];
^
Unrecognised input
in /Users/user/Projects/project/node_modules/fomantic-ui-less/definitions/elements/label.less (line 622, column 39)
@ ./node_modules/fomantic-ui-less/semantic.less 4:14-92 14:3-18:5 15:22-100
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js
I tried different versions of the fomantic-ui-less
and less-loader
. My webpack and loader configuration worked with semantic-ui-less
so I believe it should work the same with fomantic-ui-less
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (5 by maintainers)
Top Results From Across the Web
less-loader | webpack - JS.ORG
Prepends/Appends Less code to the actual entry file. In this case, the less-loader will not override the source but just prepend the entry's...
Read more >Webpack less-loader javascriptEnabled Error - Stack Overflow
I was getting this error when I moved from less-loader version 6.0.0 to version 6.1.0 when trying to load my Ant Design library...
Read more >less-loader - npm
A Less loader for webpack. Compiles Less to CSS.. Latest version: 11.1.0, last published: 3 months ago. Start using less-loader in your ...
Read more >Error with less-loader: 8.0.0 · Issue #1566 · rsuite/rsuite - GitHub
less-loader no longer support webpack earlier than v5 since v8.0.0 release (see related issue webpack-contrib/less-loader#416). If you were ...
Read more >less-loader的版本问题,启动老是报错,弄了一上午了
我的项目是react+ts的,用了less,出现的报错是TypeError: this.getOptions is not a function我网上搜了,说是less-loader的版本过高,我就删了老 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mkapiczy please take a look here: https://medium.com/@marekurbanowicz/how-to-customize-fomantic-ui-with-less-and-webpack-applicable-to-semantic-ui-too-fbf98a74506c Maybe you will find the solution.
Oh yeah. You’re right, I must have copied the theme.config variables from my previous configuration. False alarm then 😄