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

Error with Babel 6.24.0 #43

Closed
GreenGremlin opened this issue Apr 6, 2017 · 1 comment
Closed

Error with Babel 6.24.0 #43

GreenGremlin opened this issue Apr 6, 2017 · 1 comment

Comments

@GreenGremlin
Copy link

GreenGremlin commented Apr 6, 2017

When used with Babel 6.24.0, I get the following error. I shortened the absolute path to ./node_modules. Looking at the Babel source, it looks like manipulateOptions was only added in Babel 7.

ReferenceError: [BABEL] src/foo/foo.js: Unknown option: ./node_modules/babel-plugin-css-modules-transform/build/index.js.manipulateOptions. Check out http://babeljs.io/docs/usage/options/ for more information about options.

I'musing the following custom preset to configure babel-plugin-css-modules-transform.

module.exports = {
    plugins: [
        [require('babel-plugin-css-modules-transform'), {
            extractCss: {
                dir: 'lib',
                filename: '[path]/[name].css',
            },
        }],
    ],
};
@michalkvasnicak
Copy link
Owner

Thank you! :)

This is weird because this project is tested against babel 6.22.2 so it shouldn't do any BC changes. If you downgrade babel to this version does it solve the problem?

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