You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing the plugin when using TypeScript to write webpack configuration with import InjectBodyPlugin from 'inject-body-webpack-plugin';
as suggested by the Example section in readme.md yields
error TS2351: This expression is not constructable.
Type 'typeof import("inject-body-webpack-plugin")' has no construct signatures.
by the TypeScript compiler even though if type checking is skipped no error occurs.
I think the problem is with generated module declaration in index.d.ts.
If we replace export class InjectBodyPlugin with export default class InjectBodyPlugin error no longer occurs.
The text was updated successfully, but these errors were encountered:
Importing the plugin when using TypeScript to write webpack configuration with
import InjectBodyPlugin from 'inject-body-webpack-plugin';
as suggested by the Example section in readme.md yields
I think the problem is with generated module declaration in index.d.ts.
If we replace
export class InjectBodyPlugin
withexport default class InjectBodyPlugin
error no longer occurs.The text was updated successfully, but these errors were encountered: