Skip to content

declare Node version requirement #20

Closed
@pocketjoso

Description

@pocketjoso

Hi, thanks for nice library,
I was stuck with the error below for a while before I figured out that my Node version (0.10.38) didn't have the required path.parse method:

var parsed = (0, _path.parse)(pathname);
                               ^
TypeError: undefined is not a function
    at isModule (/Users/jso/criticalcss/node_modules/css-modules-require-hook/dist/index.js:113:32)

Error went away after upgrading to Node 0.12.7.


Perhaps you can declare this requirement a bit more explicitly in README somewhere (or guard and throw clearer error)?

Thanks again for great repo!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions