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.

this.filter is not a function

See original GitHub issue

Good evening all,

I get the following error: TypeError: this.filter is not a function with csscomb and postcss fly plugins.

Could it be due to removal of this in v2?

Thanks for help.

This is my flyfile.

exports.default = function*(fly) { yield fly.parallel(['html', 'styles']); };

exports.styles = function*(fly) { yield fly.source(path.styles.src) .csscomb() .target(path.styles.dist); }

exports.html = function*(fly) { yield fly.source(path.html.src).run({every: true}, function*(files) { includeHtml(files); }).target(path.html.dist); };

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
intermundoscommented, Mar 12, 2017

@jbucaran thanks, will learn this.

0reactions
lukeedcommented, Mar 12, 2017

Ah, whoops 😜 The guide @jbucaran shared is a good starting point.

I’m going to go ahead & close this issue since it’s not relevant to 2.0, but feel free to continue asking for help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

filter is not a function [duplicate] - Stack Overflow
I think this is a good Question. Just add a comment that Array.prototype.filter works only of array and therefore you must use some...
Read more >
TypeError: filter is not a function in JavaScript | bobbyhadz
The "filter is not a function" error occurs when we call the filter() method on a value that is not of type array....
Read more >
TypeError: this.users.filter is not a function in vue - Laracasts
TypeError : this.users.filter is not a function in vue. I am getting this error from the line 118-124. Please help me. Copy Code...
Read more >
JavaScript Array filter() Method - W3Schools
The filter () method creates a new array filled with elements that pass a test provided by a function. The filter() method does...
Read more >
google earth engine - Error: "l8.filter is not a function"
This and other parts of the code make sense if l8 is an ImageCollection . But where it is defined: var l8 =...
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