Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postcss-modules v0.6.2 fails on node v6 #53

Closed
andykant opened this issue Jan 15, 2017 · 1 comment
Closed

postcss-modules v0.6.2 fails on node v6 #53

andykant opened this issue Jan 15, 2017 · 1 comment

Comments

@andykant
Copy link

I recently tried to upgrade postcss-modules to latest (v0.6.2) but encountered a problem building when running on node v6.9.4. Looks like the issue is that Object.values in behaviours.js wasn't added until node v7.0.0.

I rolled back to v0.5.2 and that works fine (for those that run into the same problem).

    ERROR in ./~/css-loader!./~/postcss-loader!./src/styles.css
    Module build failed: TypeError: Object.values is not a function
        at isValidBehaviour (/home/ubuntu/PROJECT/node_modules/postcss-modules/build/behaviours.js:34:17)
        at getDefaultScopeBehaviour (/home/ubuntu/PROJECT/node_modules/postcss-modules/build/index.js:36:63)
@madyankin
Copy link
Owner

Published, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants