jlengstorf / learn-rollup

This is an example project to accompany a tutorial on using Rollup.
https://code.lengstorf.com/learn-rollup-js/
ISC License
191 stars 61 forks source link

It looks like your Babel configuration specifies a module transformer. #9

Closed thgh closed 7 years ago

thgh commented 7 years ago

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 7 years ago

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 7 years ago

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 7 years ago

@thgh Did you get this worked out? I'm going to close this as a duplicate of #2, but if I'm wrong let me know and we'all get it sorted.