Skip to content

Unable to read "src" file (Error code: EISDIR) #51

@ptitgraig

Description

@ptitgraig

I get the following error Unable to read "src" file (Error code: EISDIR) with the following config:

target: {
       options: {
           relative: false,
           template: '<%= settings.target %>/<%= settings.app %>/index.html',
           destFile: '<%= settings.target %>/<%= settings.app %>/index.html',
        },
        files: {
                src : [
                    '<%= settings.app %>/modules/app.module.js'
                ]
            }
        }
}

There is a non handle case when trying to define lineEnding from destination file.
If options.destFile is defined, it gets overriden every time by src .
Error is in getDefaultLineEnding().

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