mars / heroku-cra-node

⚛️ How to use create-react-app with a custom Node server on Heroku
MIT License
927 stars 226 forks source link

Cannot deploy with same setup #8

Closed shortcircuit3 closed 7 years ago

shortcircuit3 commented 7 years ago
Counting objects: 40, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (39/39), done.
Writing objects: 100% (40/40), 45.43 KiB | 0 bytes/s, done.
Total 40 (delta 24), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> React.js (create-react-app) multi app detected
remote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-multi.git
remote: =====> Detected Framework: Multipack
remote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
remote: =====> Detected Framework: Node.js
remote: 
remote: -----> Creating runtime environment
remote:        
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NPM_CONFIG_PRODUCTION=false
remote:        NODE_VERBOSE=false
remote:        NODE_ENV=development
remote:        NODE_MODULES_CACHE=true
remote: 
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:        
remote:        Resolving node version 6.x via semver.io...
remote:        Downloading and installing node 6.11.0...
remote:        Detected package-lock.json: defaulting npm to version 5.x.x
remote:        Resolving npm version 5.x.x via semver.io...
remote:        Downloading and installing npm 5.0.3 (replacing version 3.10.10)...
remote: 
remote: -----> Restoring cache
remote:        Skipping cache restore (new-signature)
remote: 
remote: -----> Building dependencies
remote:        Installing node modules (package.json)
remote:        
remote:        > fsevents@1.1.2 install /tmp/build_23bc4d74a9d03a2306be69b5c350cee8/node_modules/fsevents
remote:        > node install
remote:        
remote:        added 393 packages in 14.073s
remote:        Running heroku-postbuild
remote:        
remote:        > polaris-web@0.0.0 heroku-postbuild /tmp/build_23bc4d74a9d03a2306be69b5c350cee8
remote:        > cd client/ && npm install --only=dev && npm install && npm run build
remote:        
remote:        
remote:        > fsevents@1.0.17 install /tmp/build_23bc4d74a9d03a2306be69b5c350cee8/client/node_modules/fsevents
remote:        > node-pre-gyp install --fallback-to-build
remote:        
remote: node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v48-linux-x64.tar.gz 
remote: node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@6.11.0 (node-v48 ABI) (falling back to source compile with node-gyp) 
remote:        make: Entering directory '/tmp/build_23bc4d74a9d03a2306be69b5c350cee8/client/node_modules/fsevents/build'
remote:        SOLINK_MODULE(target) Release/obj.target/.node
remote:        COPY Release/.node
remote:        make: Leaving directory '/tmp/build_23bc4d74a9d03a2306be69b5c350cee8/client/node_modules/fsevents/build'
remote:        added 1104 packages in 39.311s
remote:        updated 120 packages in 10.805s
remote:        
remote:        > client@0.1.0 build /tmp/build_23bc4d74a9d03a2306be69b5c350cee8/client
remote:        > react-scripts build
remote:        
remote:        Creating an optimized production build...
remote:        Failed to compile.
remote:        
remote:        Module not found: Error: Can't resolve 'whatwg-fetch' in '/tmp/build_23bc4d74a9d03a2306be69b5c350cee8/client/node_modules/react-scripts/config'
remote:        
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 1
remote: npm ERR! client@0.1.0 build: `react-scripts build`
remote: npm ERR! Exit status 1
remote: npm ERR! 
remote: npm ERR! Failed at the client@0.1.0 build script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote: 
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR!     /app/.npm/_logs/2017-06-26T18_30_34_423Z-debug.log
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 1
remote: npm ERR! polaris-web@0.0.0 heroku-postbuild: `cd client/ && npm install --only=dev && npm install && npm run build`
remote: npm ERR! Exit status 1
remote: npm ERR! 
remote: npm ERR! Failed at the polaris-web@0.0.0 heroku-postbuild script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote: 
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR!     /app/.npm/_logs/2017-06-26T18_30_34_440Z-debug.log
remote: 
remote: -----> Build failed
remote:        
remote:        We're sorry this build is failing! You can troubleshoot common issues here:
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:        
remote:        Some possible problems:
remote:        
remote:        - Node version not specified in package.json
remote:        https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:        
remote:        Love,
remote:        Heroku
remote:        
remote:  !     Push rejected, failed to compile React.js (create-react-app) multi app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to rocky-bayou-74141.
remote: 
To https://git.heroku.com/rocky-bayou-74141.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/rocky-bayou-74141.git'
mars commented 7 years ago

According to the pasted log, this is using create-react-app-buildpack, so closing this duplicate in favor of the first issue opened on the correct repo.