Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Can't install with --only=production #27

Open
jjgonecrypto opened this issue Oct 3, 2017 · 3 comments
Open

Can't install with --only=production #27

jjgonecrypto opened this issue Oct 3, 2017 · 3 comments

Comments

@jjgonecrypto
Copy link

Steps to repro:

  • Clone this repo
  • npm install --only=production
  • npm run compile

Error: Couldn't find preset "es2015" relative to directory

The fix is to include babel-preset-es2015 in dependencies.

This is an issue because when we package Cloud, we want to compile for production only, and compass-serverstats is erroring out due to the prepublish script: https://evergreen.mongodb.com/task/mms_package_rpm_PACKAGE_CLOUD_patch_584bb6ca255365eda8aa94550988b5222d23feee_59d2a363e3c3313610000aa6_17_10_02_20_36_51

@durran @imlucas

@durran
Copy link
Member

durran commented Oct 4, 2017

@justinjmoses Yeah we can include that. Once we switch over to the new plugin template that's webpackifying everything it's a non issue but including es2015 for now can be a quick short term fix.

@jjgonecrypto
Copy link
Author

@durran this is what happens when we tried to run against 1.0.2 (and this is without changing anything on our end -
still using regular npm install) https://evergreen.mongodb.com/task/mms_int_js_INT_JS_ROUTERS_patch_9a095852476adaa55e8f16ecfb9691f6f6764057_59dbdc79e3c3315902004a39_17_10_09_20_30_50

Missing

  • hadron-app
  • mongodb-data-service
  • mongodb-ns

cc @hswolff

@jjgonecrypto jjgonecrypto reopened this Oct 10, 2017
@jjgonecrypto
Copy link
Author

cc @jrbalsano

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

No branches or pull requests

2 participants