It looks like your Babel configuration specifies a module transformer.
Closed this issue · 3 comments
thgh commented
Got this error:
projects\learn-rollup>npm run dev
Error transforming projects\src\scripts\main.js with 'babel' plugin: It looks like your Babel configuration specifies a module transformer. Please disable it. If you're using the "es2015" preset, consider using "es2015-rollup" instead. See https://github.com/rollup/rollup-plugin-babel#configuring-babel for more information
That page suggests this .babelrc
{
"presets": [
[
"es2015",
{
"modules": false
}
]
],
"plugins": [
"external-helpers"
]
}
Even with that config, I couldn't get modules & es6 working.
jlengstorf commented
Hey, @thgh — there was a discussion around this in #2, and it looks like you're using the same config that solved the problem for most people.
Can you share the error message you're getting, along with the repo so I can check it out?
Thanks!
gongph commented
Note: I use the window operating system. and node.js version is v6.2.0 and npm version is v3.8.9 . @jlengstorf
jlengstorf commented