Search code examples
javascriptwebstorm

Unresolved function or method filter() in WebStorm


I use WebStorm 2017.3.1

On this code

router.get('/costs/:id', ((req, res) => {
        let costsId = Number(req.params.id);
        let cost = costs.filter(cost => cost.id === costsId);
        res.send(cost);
    })
);

I get weak warning on costs.filter:

Unresolved function or method filter()

WebStorm Settings #1

WebStorm Settings #2 How can I fix this warning?


Solution

  • Known issue, please follow WEB-23188 for updates