Skip to content

@ngtools/webpack "readConfiguration is not a function" #8287

@MitchTalmadge

Description

@MitchTalmadge

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.1.1
node: 6.9.1
os: win32 x64
@angular/animations: 5.0.0
@angular/common: 5.0.0
@angular/compiler: 5.0.0
@angular/core: 5.0.0
@angular/forms: 5.0.0
@angular/http: 5.0.0
@angular/platform-browser: 5.0.0
@angular/platform-browser-dynamic: 5.0.0
@angular/router: 5.0.0
@angular/compiler-cli: 4.4.6
@ngtools/webpack: 1.8.0

Windows 10 x64

Repro steps.

I am trying to build with this command:

webpack --config webpack/webpack.production.config.js -p --progress

You can find my repository here: https://github.com/MitchTalmadge/Portfolio

Relevant links:

The log given by the failure.

D:\Media\Programming\Personal\IntelliJ Projects\Portfolio\web\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:88
        const config = ngtools_api_1.readConfiguration(this._tsConfigPath);
                                     ^

TypeError: ngtools_api_1.readConfiguration is not a function
    at AngularCompilerPlugin._setupOptions (D:\Media\Programming\Personal\IntelliJ Projects\Portfolio\web\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:88:38)
    at new AngularCompilerPlugin (D:\Media\Programming\Personal\IntelliJ Projects\Portfolio\web\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:43:14)
    at Object.<anonymous> (D:\Media\Programming\Personal\IntelliJ Projects\Portfolio\web\webpack\webpack.production.config.js:18:5)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at requireConfig (D:\Media\Programming\Personal\IntelliJ Projects\Portfolio\web\node_modules\webpack\bin\convert-argv.js:97:18)
    at D:\Media\Programming\Personal\IntelliJ Projects\Portfolio\web\node_modules\webpack\bin\convert-argv.js:104:17
    at Array.forEach (native)
    at module.exports (D:\Media\Programming\Personal\IntelliJ Projects\Portfolio\web\node_modules\webpack\bin\convert-argv.js:102:15)
    at yargs.parse (D:\Media\Programming\Personal\IntelliJ Projects\Portfolio\web\node_modules\webpack\bin\webpack.js:171:41)
    at Object.Yargs.self.parse (D:\Media\Programming\Personal\IntelliJ Projects\Portfolio\web\node_modules\webpack\node_modules\yargs\yargs.js:533:18)

Desired functionality.

It should build.

Mention any other details that might be useful.

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