Сбой сборки почему? - PullRequest
       64

Сбой сборки почему?

0 голосов
/ 23 февраля 2019

Сборка продолжает давать сбой справки! Репозиторий, связанный с этим проектом, является частным, если подробности о моем файле package.json требуется отправить.

   -----> Node.js app detected

-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NODE_ENV=production
       NODE_MODULES_CACHE=true
       NODE_VERBOSE=false

-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)
       engines.yarn (package.json):  unspecified (use default)

       Resolving node version 10.x...
       Downloading and installing node 10.15.1...
       Using default npm version: 6.4.1
       Resolving yarn version 1.x...
       Downloading and installing yarn (1.14.0)...
       Installed yarn 1.14.0

-----> Building dependencies
       Installing node modules (yarn.lock)
       yarn install v1.14.0
       error An unexpected error occurred: "/tmp/build_92785ec867666d739a3a4a010d233406/package.json: Unexpected token { in JSON at position 2383".
       info If you think this is a bug, please open a bug report with the information provided in "/tmp/build_92785ec867666d739a3a4a010d233406/yarn-error.log".
       info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
-----> Build failed

       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys

       Some possible problems:

       - Node version not specified in package.json
         https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

       Love,
       Heroku

 !     Push rejected, failed to compile Node.js app.
 !     Push failed

Сборка продолжает сбой справки!репо, связанное с этим проектом, является частным, если требуется получить подробную информацию о моем пакете. json, и его можно отправить.

1 Ответ

0 голосов
/ 24 февраля 2019

Исправлена ​​ошибка, мой массив posts не был определен.Я проверил, действительно ли они возвращаются, и если нет, почему они не возвращаются, и увидел, что posts was not defined.

...