Skip to content

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined #400

@githoniel

Description

@githoniel

Bug

I meet bug in title when compile with less error.

Version:

less: 3.13.1
less-loader: 6.20

What I found

my less option is
image

error is
image

I dont know why there is no more info.

https://github.com/webpack-contrib/less-loader/blob/78befcdf71c34231efefd977cfb107844eeffcbc/src/index.js#L45-L53

We check lessError.filename for existed but do not do this in constructor of LessError

https://github.com/webpack-contrib/less-loader/blob/78befcdf71c34231efefd977cfb107844eeffcbc/src/LessError.js#L11

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