Skip to content

Instantly share code, notes, and snippets.

@mairh
Created May 4, 2018 13:20
Show Gist options
  • Save mairh/e4769b12607eb7e0edcb803efa07f449 to your computer and use it in GitHub Desktop.
Save mairh/e4769b12607eb7e0edcb803efa07f449 to your computer and use it in GitHub Desktop.
Heroku minify error
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
YARN_PRODUCTION=false
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=false
-----> Installing binaries
engines.node (package.json): >= 6.11.1 < 10
engines.npm (package.json): unspecified (use default)
engines.yarn (package.json): >= 1.0.0
Resolving node version >= 6.11.1 < 10...
Downloading and installing node 9.11.1...
Using default npm version: 5.6.0
Resolving yarn version >= 1.0.0...
Downloading and installing yarn (1.6.0)...
Installed yarn 1.6.0
-----> Restoring cache
Skipping cache restore (disabled)
-----> Building dependencies
Installing node modules (yarn.lock)
yarn install v1.6.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info @expo/traveling-fastlane-darwin@1.4.7: The platform "linux" is incompatible with this module.
info "@expo/traveling-fastlane-darwin@1.4.7" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.1.2: The platform "linux" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-darwin-ia32@2.2.8: The platform "linux" is incompatible with this module.
info "@expo/ngrok-bin-darwin-ia32@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-darwin-ia32@2.2.8: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-darwin-x64@2.2.8: The platform "linux" is incompatible with this module.
info "@expo/ngrok-bin-darwin-x64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-freebsd-ia32@2.2.8: The platform "linux" is incompatible with this module.
info "@expo/ngrok-bin-freebsd-ia32@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-freebsd-ia32@2.2.8: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-freebsd-x64@2.2.8: The platform "linux" is incompatible with this module.
info "@expo/ngrok-bin-freebsd-x64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm@2.2.8: The CPU architecture "x64" is incompatible with this module.
info "@expo/ngrok-bin-linux-arm@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-arm64@2.2.8: The CPU architecture "x64" is incompatible with this module.
info "@expo/ngrok-bin-linux-arm64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-linux-ia32@2.2.8: The CPU architecture "x64" is incompatible with this module.
info "@expo/ngrok-bin-linux-ia32@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-sunos-x64@2.2.8: The platform "linux" is incompatible with this module.
info "@expo/ngrok-bin-sunos-x64@2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-win32-ia32@2.2.8-beta.1: The platform "linux" is incompatible with this module.
info "@expo/ngrok-bin-win32-ia32@2.2.8-beta.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/ngrok-bin-win32-ia32@2.2.8-beta.1: The CPU architecture "x64" is incompatible with this module.
info @expo/ngrok-bin-win32-x64@2.2.8-beta.1: The platform "linux" is incompatible with this module.
info "@expo/ngrok-bin-win32-x64@2.2.8-beta.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > tslint-plugin-prettier@1.3.0" has unmet peer dependency "prettier@^1.4.0".
warning "tslint-plugin-prettier > eslint-plugin-prettier@2.6.0" has unmet peer dependency "prettier@>= 0.11.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client@1.0.0" has unmet peer dependency "@expo/vector-icons@^6.2.1".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client@1.0.0" has unmet peer dependency "antd-mobile@^2.1.2".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client@1.0.0" has unmet peer dependency "expo@^27.0.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client@1.0.0" has unmet peer dependency "native-base@^2.3.5".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client@1.0.0" has unmet peer dependency "react-native@0.55.3".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client@1.0.0" has unmet peer dependency "react-native-simple-picker@^2.0.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client@1.0.0" has unmet peer dependency "react-navigation@^1.5.11".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > apollo-cache-router@1.1.0" has unmet peer dependency "apollo-cache@^1.1.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > graphql-iso-date@3.3.0" has incorrect peer dependency "graphql@^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > react-redux@5.0.6" has incorrect peer dependency "redux@^2.0.0 || ^3.0.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > redux-devtools-extension@2.13.2" has incorrect peer dependency "redux@^3.1.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > redux-form@7.3.0" has incorrect peer dependency "redux@^3.0.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > subscriptions-transport-ws@0.9.4" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > mini-css-extract-plugin@0.4.0" has incorrect peer dependency "webpack@^4.4.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > mocha-webpack@0.7.0" has incorrect peer dependency "mocha@^2.4.5 || ^3.0.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > mocha-webpack@0.7.0" has incorrect peer dependency "webpack@^1.12.13 || ^2.1.0-beta.15".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > webpack-dev-middleware@3.1.3" has incorrect peer dependency "webpack@^4.0.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > mobile > haul@1.0.0-beta.14" has incorrect peer dependency "babel-preset-react-native@^2.0.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > server > apollo-upload-server@5.0.0" has incorrect peer dependency "graphql@^0.13.1".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > antd > rc-editor-mention@1.1.1" has unmet peer dependency "immutable@~3.7.4".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > client > apollo-client > apollo-link@1.0.0" has incorrect peer dependency "graphql@^0.11.3".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > mobile > expo > react-native-maps@0.21.0" has incorrect peer dependency "react-native@^0.51 || ^0.52 || ^0.53 || ^0.54".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > mobile > haul > react-hot-loader > redbox-react@1.5.0" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0-beta || ^16.0.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > server > apollo-server-express > apollo-server-core > apollo-tracing@0.1.1" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0".
warning "workspace-aggregator-a52a6bf7-f267-4907-a213-17b3860b2326 > server > apollo-server-express > apollo-server-core > graphql-extensions@0.0.5" has incorrect peer dependency "graphql@^0.10.0 || ^0.11.0".
[4/4] Building fresh packages...
Done in 119.26s.
Running heroku-postbuild (yarn)
yarn run v1.6.0
$ lerna run heroku-postbuild --stream
lerna info version 2.10.1
lerna info versioning independent
mobile: $ yarn build && yarn exp-publish
client: $ yarn build
server: $ yarn build
server: $ cross-env NODE_ENV=production spin build
mobile: $ cross-env NODE_ENV=production spin build
client: $ cross-env NODE_ENV=production spin build
server: [at-loader] Using typescript@2.8.1 from typescript and "tsconfig.json" from /tmp/build_2c615e61a0c02c5df4a063efe5d8c826/packages/server/tsconfig.json.
client: [at-loader] Using typescript@2.8.1 from typescript and "tsconfig.json" from /tmp/build_2c615e61a0c02c5df4a063efe5d8c826/packages/client/tsconfig.json.
mobile: [at-loader] Using typescript@2.8.1 from typescript and "tsconfig.json" from /tmp/build_2c615e61a0c02c5df4a063efe5d8c826/packages/mobile/tsconfig.json.
mobile: [at-loader] Using typescript@2.8.1 from typescript and "tsconfig.json" from /tmp/build_2c615e61a0c02c5df4a063efe5d8c826/packages/mobile/tsconfig.json.
server: [at-loader] Checking started in a separate process...
server: [at-loader] Ok, 0.172 sec.
server: webpack-for-server Time: 171553ms
server: ERROR in ../client/src/modules/order/reducers/orderForm.js
server: Module build failed: TypeError: /tmp/build_2c615e61a0c02c5df4a063efe5d8c826/packages/client/src/modules/order/reducers/orderForm.js: Property local of ExportSpecifier expected node to be of a type ["Identifier"] but instead got "StringLiteral"
server: at Object.validate (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-types/lib/definitions/index.js:109:13)
server: at Object.validate (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-types/lib/index.js:505:9)
server: at NodePath._replaceWith (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/replacement.js:176:7)
server: at NodePath.replaceWith (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/replacement.js:160:8)
server: at PluginPass.Expression (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-plugin-minify-constant-folding/lib/index.js:199:16)
server: at PluginPass.newFn (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/visitors.js:318:17)
server: at newFn (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/visitors.js:276:21)
server: at NodePath._call (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:76:18)
server: at NodePath.call (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:48:17)
server: at NodePath.visit (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:105:12)
server: @ ../client/src/modules/order/containers/OrderCreate.jsx 1:969-1030
server: @ ../client/src/modules/order/index.web.jsx
server: @ ../client/src/modules/index.js
server: @ ./src/middleware/website.jsx
server: @ ./src/app.js
server: @ ./src/server.js
server: @ ./src/index.ts
server: @ multi raf/polyfill babel-polyfill ./src/index.ts
server: ERROR in ../client/src/modules/order/reducers/orderProductForm.js
server: Module build failed: TypeError: /tmp/build_2c615e61a0c02c5df4a063efe5d8c826/packages/client/src/modules/order/reducers/orderProductForm.js: Property local of ExportSpecifier expected node to be of a type ["Identifier"] but instead got "StringLiteral"
server: at Object.validate (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-types/lib/definitions/index.js:109:13)
server: at Object.validate (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-types/lib/index.js:505:9)
server: at NodePath._replaceWith (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/replacement.js:176:7)
server: at NodePath.replaceWith (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/replacement.js:160:8)
server: at PluginPass.Expression (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-plugin-minify-constant-folding/lib/index.js:199:16)
server: at PluginPass.newFn (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/visitors.js:318:17)
server: at newFn (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/visitors.js:276:21)
server: at NodePath._call (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:76:18)
server: at NodePath.call (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:48:17)
server: at NodePath.visit (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:105:12)
server: @ ../client/src/modules/order/containers/OrderCreate.jsx 1:1030-1102
server: @ ../client/src/modules/order/index.web.jsx
server: @ ../client/src/modules/index.js
server: @ ./src/middleware/website.jsx
server: @ ./src/app.js
server: @ ./src/server.js
server: @ ./src/index.ts
server: @ multi raf/polyfill babel-polyfill ./src/index.ts
client: [at-loader] Checking started in a separate process...
client: [at-loader] Ok, 0.194 sec.
client: webpack-for-web Time: 203795ms
client: ERROR in ./src/modules/order/reducers/orderForm.js
client: Module build failed: TypeError: /tmp/build_2c615e61a0c02c5df4a063efe5d8c826/packages/client/src/modules/order/reducers/orderForm.js: Property local of ExportSpecifier expected node to be of a type ["Identifier"] but instead got "StringLiteral"
client: at Object.validate (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-types/lib/definitions/index.js:109:13)
client: at Object.validate (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-types/lib/index.js:505:9)
client: at NodePath._replaceWith (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/replacement.js:176:7)
client: at NodePath.replaceWith (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/replacement.js:160:8)
client: at PluginPass.Expression (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-plugin-minify-constant-folding/lib/index.js:199:16)
client: at PluginPass.newFn (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/visitors.js:318:17)
client: at newFn (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/visitors.js:276:21)
client: at NodePath._call (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:76:18)
client: at NodePath.call (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:48:17)
client: at NodePath.visit (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:105:12)
client: @ ./src/modules/order/reducers/index.js 1:35-70
client: @ ./src/modules/order/index.web.jsx
client: @ ./src/modules/index.js
client: @ ./src/app/Main.jsx
client: @ ./src/index.tsx
client: @ multi raf/polyfill babel-polyfill ./src/index.tsx
client: ERROR in ./src/modules/order/reducers/orderProductForm.js
client: Module build failed: TypeError: /tmp/build_2c615e61a0c02c5df4a063efe5d8c826/packages/client/src/modules/order/reducers/orderProductForm.js: Property local of ExportSpecifier expected node to be of a type ["Identifier"] but instead got "StringLiteral"
client: at Object.validate (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-types/lib/definitions/index.js:109:13)
client: at Object.validate (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-types/lib/index.js:505:9)
client: at NodePath._replaceWith (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/replacement.js:176:7)
client: at NodePath.replaceWith (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/replacement.js:160:8)
client: at PluginPass.Expression (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-plugin-minify-constant-folding/lib/index.js:199:16)
client: at PluginPass.newFn (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/visitors.js:318:17)
client: at newFn (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/visitors.js:276:21)
client: at NodePath._call (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:76:18)
client: at NodePath.call (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:48:17)
client: at NodePath.visit (/tmp/build_2c615e61a0c02c5df4a063efe5d8c826/node_modules/babel-traverse/lib/path/context.js:105:12)
client: @ ./src/modules/order/reducers/index.js 1:70-119
client: @ ./src/modules/order/index.web.jsx
client: @ ./src/modules/index.js
client: @ ./src/app/Main.jsx
client: @ ./src/index.tsx
client: @ multi raf/polyfill babel-polyfill ./src/index.tsx
client: ERROR in index.3ad909ba148c1d67c3b8.js from UglifyJs
client: Unexpected token: name (value) [index.3ad909ba148c1d67c3b8.js:160574,10]
mobile: [at-loader] Checking started in a separate process...
mobile: [at-loader] Checking started in a separate process...
mobile: [at-loader] Ok, 0.083 sec.
mobile: [at-loader] Ok, 0.093 sec.
mobile: webpack-for-android Time: 256564ms
mobile: webpack-for-ios Time: 257114ms
mobile: $ yarn exp-login && yarn exp -- p --non-interactive
mobile: $ cross-env NODE_ENV=production spin exp login -u $EXP_USERNAME -p $EXP_PASSWORD --non-interactive
mobile: Success. You are now logged in as nish.
mobile: $ cross-env NODE_ENV=production spin exp p --non-interactive
mobile: warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
mobile: spin info Starting Expo prod server
mobile: spin info Production mobile packager listening on http://localhost:3030
mobile: spin info Expo server running on address: exp://localhost:19000
mobile: 13:15:02 [exp] Publishing to channel 'default'...
mobile: 13:15:03 [exp] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.
mobile: 13:15:04 [exp] Building iOS bundle
mobile: 13:15:04 [exp] Building Android bundle
mobile: 13:15:04 [exp] Analyzing assets
mobile: 13:15:04 [exp] Uploading assets
mobile: 13:15:05 [exp] No assets changed, skipped.
mobile: 13:15:05 [exp] Uploading JavaScript bundles
mobile: 13:15:07 [exp] Published
mobile: 13:15:07 [exp] Your URL is
mobile: https://exp.host/@nish/easymedi
lerna success run Ran npm script 'heroku-postbuild' in packages:
lerna success - client
lerna success - mobile
lerna success - server
Done in 289.23s.
-----> Caching build
Clearing previous node cache
Skipping cache save (disabled by config)
-----> Pruning devDependencies
Skipping because YARN_PRODUCTION is 'false'
-----> Build succeeded!
! Unmet dependencies don't fail yarn install but may cause runtime issues
https://github.com/npm/npm/issues/7494
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 210.8M
-----> Launching...
Released v59
https://easymedi.herokuapp.com/ deployed to Heroku
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment