Skip to content

Relative path in node_modules #161

Open
@longlho

Description

@longlho

If I try to compose from a module that's in node_modules and that happens to compose from a relative path module, it croaks:

{ Error: ENOENT: no such file or directory, open '/Users/longho/Work/css-modules-loader-core/test/test-cases/compose-node-module/cool-styles/bar.css'
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/longho/Work/css-modules-loader-core/test/test-cases/compose-node-module/cool-styles/bar.css' }

I've put the example in my fork: https://github.com/longlho/css-modules-loader-core/blob/master/node_modules/cool-styles/foo.css#L6

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