Skip to content

Exception in Module Concat Plugin #5415

@jezell

Description

@jezell

Adding ModuleConcatPlugin to my webpack config results in following error:

ERROR in chunk main [initial]
[name].[chunkhash].js
Cannot read property 'range' of null
TypeError: Cannot read property 'range' of null
    at enterNode (.../node_modules/webpack/lib/optimize/ConcatenatedModule.js:118:14)
    at getPathInAst (.../node_modules/webpack/lib/optimize/ConcatenatedModule.js:97:24)

This using Webpack 3.4.1. Everything compiles without issues if the concat module plugin is removed.

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