tasks.js expects error.filename
See original GitHub issuehttps://github.com/Semantic-Org/Semantic-UI/blob/master/tasks/config/tasks.js#L92
This expects that the error will have a filename property. Sometimes other errors can be thrown and caught by this.
When it tries to access error.filename.match it throws.
Cannot call method ‘match’ of undefined suppressing the real error.
It should be
if(error.filename && error.filename.match(/theme.less/)) {
N.B
Because semantic doesn’t version its dependencies you can end up with gulp-autoprefixer 3.0.1 which requires node 12 and will make the semantic build process fail with:
/gulp-less/node_modules/accord/node_modules/when/lib/decorators/unhandledRejection.js:80
throw e;
^
TypeError: Cannot call method 'match' of undefined
which is actually covering up the error:
[Error: no writecb in Transform class]
If you need to fix this force install gulp-autoprefixer to 2.3.1
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (2 by maintainers)
Top Results From Across the Web
SyntaxError: expected expression, got '<', what does that mean?
Sometimes this error happens when the Javascript referenced file doesn't exist. Make sure that the file name is correct ...
Read more >A Definitive Guide to Handling Errors in JavaScript - Kinsta
Getting tripped up by errors in your JavaScript? We'll show you how to tame those errors so you can get back to developing...
Read more >Best Practices for Node.js Error-handling - Toptal
This article will introduce you to error-handling in Node.js and demonstrate ... Does it make sense to restart an application due to “File...
Read more >Error handling in Node.js - LogRocket Blog
Deliver reliable software by learning how to handle errors in Node.js using callbacks, promises, and event emitters.
Read more >A Comprehensive Guide To Error Handling In Node.js
As you can see, the readFile() method expects a callback function as its last argument, which adheres to the error-first function signature ...
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 Free
Top 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
Same problem.
Fast workaround:
Yup, I use Fomantic-UI; commented here just in case, since this bug has been carried over from Semantic to Fomantic. Anyway, to anybody with this issue, for reference: a PR has been submitted with the fix, will be released in Fomantic 2.8.x 😃