question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Less-loader error

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
mkapiczycommented, Feb 25, 2019

Oh yeah. You’re right, I must have copied the theme.config variables from my previous configuration. False alarm then 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found