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.

[Table] Unable to build table in the latest versions

See original GitHub issue

Bug Report

Fomantic ui is unable to build from a fresh npm install

Steps to reproduce

  1. npm init a new directory
  2. npm i -D gulp fomantic-ui
  3. Follow all of the installation defaults
  4. npx gulp build --gulpfile semantic/gulpfile.js --cwd semantic/

Expected result

Successful build

Actual result

A build that succeeds until it tries to build the table css:

[PluginError: Cannot create property '_index' on string '!important' in file /home/david/src/test/semantic/src/themes/default/collections/table.variables line no. 1] {
  message: "Cannot create property '_index' on string '!important' in file /home/david/src/test/semantic/src/themes/default/collections/table.variables line no. 1",
  stack: undefined,
  type: 'Syntax',
  filename: '/home/david/src/test/semantic/src/themes/default/collections/table.variables',
  index: NaN,
  line: 1,
  column: -1,
  callLine: NaN,
  callExtract: undefined,
  extract: [
    undefined,
    '/*******************************',
    '             Table'
  ],
  lineNumber: 1,
  fileName: '/home/david/src/test/semantic/src/themes/default/collections/table.variables',
  name: 'Error',
  plugin: 'gulp-less',
  showProperties: true,
  showStack: false,
  __safety: { toString: [Function: bound ] }
}

Version

node 12.8.0 (also tested 10.16.2; same error) npm 6.10.2 fomantic-ui 2.7.7 gulp 4.0.2


EDIT: looks like someone else is encountering a similar error, it may be because the table.variables is the only file with !important https://stackoverflow.com/questions/57568988/gulp-less-fails-when-using-important

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
lubber-decommented, Aug 23, 2019

Fixed by less 3.10.3 in #950

1reaction
davidroecacommented, Aug 21, 2019

Looks like it’s precisely what’s happening here https://github.com/fomantic/Fomantic-UI/pull/939 npm i -D less@~3.9.0 fixes it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to make or add tables to a query
I'm unable to make a query. When I'm in Query Design modem either for a new or existing query, the "show table" button...
Read more >
MySQL: Can't create table (errno: 150) - Stack Overflow
My error was master table had MyISAM and child table InnoDB engine. Current create.sql script was using InnoDB for all tables, but I...
Read more >
Design Table Error: "Failed to connect. Link may be broken ...
Following a Windows Update rolled out on May 10th 2022, the following error may appear when editing a design table: "Failed to connect....
Read more >
Solved: Installation Error-Failed to create database table...
Solved: During the installation of SRM, I receive the following error: Failed to create database tables. Details: DB does not contain SRM schema:...
Read more >
Create Excel Table & Fix Problems - Contextures
In Excel 2007, and later versions, you can use the Table command to convert a list of data into a formatted Excel Table....
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