keystonejs / keystone-classic

Node.js CMS and web app framework
http://v4.keystonejs.com
MIT License
14.62k stars 2.21k forks source link

babel settings in root directory are used for keystone module #4488

Open mikey0000 opened 7 years ago

mikey0000 commented 7 years ago

Expected behavior

Admin.js should not fail with errors

Actual/Current behavior

When using the transform-runtime plugin for babel admin.js crashes with

TypeError: $export is not a function

as babel-polyfill is reading .babelrc or package.json.

Steps to reproduce the actual/current behavior

create a babelrc file with plugin: transform-runtime

Environment

Software Version
Keystone 4.0.0-beta.7
Node 6.10
mikestopcontinues commented 7 years ago

@mikey0000, I've been having a similar problem (issue #4512), but I've come to a more specific (and slightly different) cause. I tested different node versions with and without babel at all, and it seems like certain List configuration options are giving me the same error in all cases.

In any case, have you solved your issue? I'd really like to advance this project, but I've kinda hit a wall myself.

leichenau commented 6 years ago

I go similar problem in 4.0.0-beta.8

onedevlad commented 6 years ago

+1 here. Inlined my .babelrc config into wepack.config.json. Might have put it into package.json/gulpfile.js as well.

django-wong commented 6 years ago

Having similar problem using parcel