Skip to content

TypeError: Cannot set property 'tsLoaderFileVersion' of undefined #340

Closed
@quentincaffeino

Description

@quentincaffeino

Compilation with TS enabled fails with this error:

 ERROR  Failed to compile with 1 errors

 error  in ./somefile.ts

Module build failed: TypeError: Cannot set property 'tsLoaderFileVersion' of undefined
    at successLoader (/var/www/html/node_modules/ts-loader/dist/index.js:49:54)
    at Object.loader (/var/www/html/node_modules/ts-loader/dist/index.js:21:12)

Found only one similar issue on github and it says that latest ts-loader doesn't support webpack <4.
So how about an upgrade then?

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