Skip to content

Cannot read property 'afterCompile' of undefined #9783

@mehdi550u

Description

@mehdi550u

Hi,
ERROR in ./server.ts
Module build failed: TypeError: Cannot read property 'afterCompile' of undefined
at successfulTypeScriptInstance (D:\test\ang\node_modules\ts-loader\dist\instances.js:147:28)
at Object.getTypeScriptInstance (D:\test\ang\node_modules\ts-loader\dist\instances.js:48:12)
at Object.loader (D:\test\ang\node_modules\ts-loader\dist\index.js:16:41)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! ang@0.0.0 webpack:server: webpack --config webpack.server.config.js --progress --colors
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the ang@0.0.0 webpack:server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I receive this error when I try to run "webpack --config webpack.server.config.js --progress --colors"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions