Skip to content

webpack AOT @ngtools throws error #3571

@prithviraju1369

Description

@prithviraju1369

While doing AOT bundle Results below error at file path

d:\xyz\angular2-lazyr\node_modules@ngtools\webpack\src\plugin.js:167
if (request.request.match(/.ts$/)) {
^

// Virtual file system.
        compiler.resolvers.normal.plugin('resolve', function (request, cb) {
            if (request.request.match(/\.ts$/)) {
                _this.done.then(function () { return cb(); });
            }
            else {
                cb();
            }
        });

Below is AOT webpack config


plugins: require('./../webpack/plugins').concat([
        new ngtools.AotPlugin({
            tsConfigPath: helpers.root('tsconfig.aot.json'),
            entryModule: helpers.root('src/app/app.module#AppModule')
        }),

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