google / google/closure-compiler

Request for suppression tag for: cannot instantiate non-constructor

Open
#2,862 2 comments 0 reactions 1 assignee Claimed by @MatrixFrog View on GitHub
Types
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

Please add a new suppression tag for the following warning:

> cannot instantiate non-constructor
This is needed when using third party libraries like Node.js where the "require" function is used and then you need to create an object using the "new" keyword from a "require" object. It isn't possible to add the @construct because this is third party code.

My app generates a lot of these warnings and currently there is no workaround.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.