Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running now fails to build #1

Open
JoueBien opened this issue Aug 1, 2019 · 0 comments
Open

running now fails to build #1

JoueBien opened this issue Aug 1, 2019 · 0 comments

Comments

@JoueBien
Copy link

JoueBien commented Aug 1, 2019

running build and server works correctly but building with now fails with the following error

'next-server': 'v7.0.2-canary.49' },
--
Aug 01 2019 12:35:08:883 | ...package.json | devDependencies:
Aug 01 2019 12:35:08:883 | ...package.json | { '@types/chai': '^4.1.7',
Aug 01 2019 12:35:08:883 | ...package.json | '@types/mocha': '^5.2.5',
Aug 01 2019 12:35:08:883 | ...package.json | '@types/node': '^10.12.1',
Aug 01 2019 12:35:08:883 | ...package.json | '@zeit/next-typescript': '^1.1.1',
Aug 01 2019 12:35:08:883 | ...package.json | chai: '^4.2.0',
Aug 01 2019 12:35:08:883 | ...package.json | express: '^4.16.4',
Aug 01 2019 12:35:08:883 | ...package.json | 'isomorphic-unfetch': '^3.0.0',
Aug 01 2019 12:35:08:883 | ...package.json | mocha: '^5.2.0',
Aug 01 2019 12:35:08:883 | ...package.json | next: 'v7.0.2-canary.49',
Aug 01 2019 12:35:08:883 | ...package.json | 'react-markdown': '^4.0.3',
Aug 01 2019 12:35:08:883 | ...package.json | typescript: '^3.1.4',
Aug 01 2019 12:35:08:883 | ...package.json | '@types/express': '^4.16.0',
Aug 01 2019 12:35:08:883 | ...package.json | '@types/jest': '^23.3.9',
Aug 01 2019 12:35:08:883 | ...package.json | '@types/next': '^7.0.3',
Aug 01 2019 12:35:08:883 | ...package.json | '@types/react': '^16.4.18',
Aug 01 2019 12:35:08:883 | ...package.json | '@types/react-dom': '^16.0.9',
Aug 01 2019 12:35:08:883 | ...package.json | '@types/styled-jsx': '^2.2.7',
Aug 01 2019 12:35:08:883 | ...package.json | nodemon: '^1.18.7',
Aug 01 2019 12:35:08:883 | ...package.json | 'ts-node': '^7.0.1',
Aug 01 2019 12:35:08:883 | ...package.json | 'next-server': undefined },
Aug 01 2019 12:35:08:883 | ...package.json | engines: { node: '8.x' } }
Aug 01 2019 12:35:08:883 | ...package.json | installing dependencies...
Aug 01 2019 12:35:08:883 | ...package.json | installing to /tmp/acefe67
Aug 01 2019 12:35:09:037 | ...package.json | yarn install v1.16.0
Aug 01 2019 12:35:09:058 | ...package.json | info No lockfile found.
Aug 01 2019 12:35:09:064 | ...package.json | [1/4] Resolving packages...
Aug 01 2019 12:35:14:262 | ...package.json | [2/4] Fetching packages...
Aug 01 2019 12:35:20:650 | ...package.json | info fsevents@1.2.9: The platform "linux" is incompatible with this module.
Aug 01 2019 12:35:20:650 | ...package.json | info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
Aug 01 2019 12:35:20:651 | ...package.json | [3/4] Linking dependencies...
Aug 01 2019 12:35:20:656 | ...package.json | warning "@zeit/next-typescript > @babel/preset-typescript@7.3.3" has unmet peer dependency "@babel/core@^7.0.0-0".
Aug 01 2019 12:35:20:656 | ...package.json | warning "@zeit/next-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript@7.5.5" has unmet peer dependency "@babel/core@^7.0.0-0".
Aug 01 2019 12:35:20:656 | ...package.json | warning "@zeit/next-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript > @babel/plugin-syntax-typescript@7.3.3" has unmet peer dependency "@babel/core@^7.0.0-0".
Aug 01 2019 12:35:20:656 | ...package.json | warning "@zeit/next-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript > @babel/helper-create-class-features-plugin@7.5.5" has unmet peer dependency "@babel/core@^7.0.0".
Aug 01 2019 12:35:22:982 | ...package.json | [4/4] Building fresh packages...
Aug 01 2019 12:35:23:516 | ...package.json | success Saved lockfile.
Aug 01 2019 12:35:23:519 | ...package.json | $ npm run build
Aug 01 2019 12:35:23:721 | ...package.json | npm
Aug 01 2019 12:35:23:721 | ...package.json | WARN lifecycle The node binary used for scripts is /tmp/yarn--1564626923203-0.21130192185861096/node but npm is using /node8/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
Aug 01 2019 12:35:23:722 | ...package.json | > hello-next@1.0.0 build /tmp/acefe67
Aug 01 2019 12:35:23:722 | ...package.json | > next build && tsc --project tsconfig.server.json
Aug 01 2019 12:35:24:587 | ...package.json | [02:35:24] Compiling client
Aug 01 2019 12:35:24:604 | ...package.json | [02:35:24] Compiling server
Aug 01 2019 12:35:24:692 | ...package.json | > Using external babel configuration
Aug 01 2019 12:35:24:692 | ...package.json | > Location: "/tmp/acefe67/.babelrc"
Aug 01 2019 12:35:27:503 | ...package.json | [02:35:27] Compiled server in 3s
Aug 01 2019 12:35:30:586 | ...package.json | Browser assets sizes after gzip:
Aug 01 2019 12:35:30:586 | ...package.json | 1.04 kB  .next/static/0JsV****/pages/_app.js
Aug 01 2019 12:35:30:586 | ...package.json | 4.43 kB  .next/static/0JsV****/pages/_error.js
Aug 01 2019 12:35:30:586 | ...package.json | 260 B  .next/static/0JsV****/pages/about.js
Aug 01 2019 12:35:30:586 | ...package.json | 4.83 kB  .next/static/0JsV****/pages/index.js
Aug 01 2019 12:35:30:586 | ...package.json | 1 kB  .next/static/0JsV****/pages/post.js
Aug 01 2019 12:35:30:586 | ...package.json | 61.8 kB  .next/static/chunks/commons.2a5c****.js
Aug 01 2019 12:35:30:586 | ...package.json | 7.08 kB  .next/static/runtime/main-641d****.js
Aug 01 2019 12:35:30:586 | ...package.json | 737 B  .next/static/runtime/webpack-4265****.js
Aug 01 2019 12:35:30:587 | ...package.json | [02:35:30] Compiled client in 6s
Aug 01 2019 12:35:32:236 | ...package.json | Done in 23.20s.
Aug 01 2019 12:35:32:248 | ...package.json | running user script...
Aug 01 2019 12:35:32:249 | ...package.json | running "yarn run now-build"
Aug 01 2019 12:35:32:584 | ...package.json | yarn run v1.16.0
Aug 01 2019 12:35:32:613 | ...package.json | $ NODE_OPTIONS=--max_old_space_size=3000 next build --lambdas
Aug 01 2019 12:35:33:467 | ...package.json | [02:35:33] Compiling client
Aug 01 2019 12:35:33:553 | ...package.json | > Using external babel configuration
Aug 01 2019 12:35:33:553 | ...package.json | > Location: "/tmp/acefe67/.babelrc"
Aug 01 2019 12:35:35:008 | ...package.json | Browser assets sizes after gzip:
Aug 01 2019 12:35:35:008 | ...package.json | 1.04 kB  .next/static/hcqJ****/pages/_app.js
Aug 01 2019 12:35:35:008 | ...package.json | 4.43 kB  .next/static/hcqJ****/pages/_error.js
Aug 01 2019 12:35:35:008 | ...package.json | 260 B  .next/static/hcqJ****/pages/about.js
Aug 01 2019 12:35:35:008 | ...package.json | 4.83 kB  .next/static/hcqJ****/pages/index.js
Aug 01 2019 12:35:35:008 | ...package.json | 1.01 kB  .next/static/hcqJ****/pages/post.js
Aug 01 2019 12:35:35:008 | ...package.json | 61.8 kB  .next/static/chunks/commons.2a5c****.js
Aug 01 2019 12:35:35:008 | ...package.json | 7.08 kB  .next/static/runtime/main-641d****.js
Aug 01 2019 12:35:35:008 | ...package.json | 737 B  .next/static/runtime/webpack-4265****.js
Aug 01 2019 12:35:35:010 | ...package.json | [02:35:35] Compiled client in 2s
Aug 01 2019 12:35:35:023 | ...package.json | [02:35:35] Compiling server
Aug 01 2019 12:35:39:164 | ...package.json | [02:35:39] Compiled server in 4s
Aug 01 2019 12:35:39:166 | ...package.json | > Emitted warnings from webpack
Aug 01 2019 12:35:39:167 | ...package.json | ModuleNotFoundError: Module not found: Error: Can't resolve 'encoding' in '/tmp/acefe67/node_modules/node-fetch/lib'
Aug 01 2019 12:35:39:167 | ...package.json | at factory.create (/tmp/acefe67/node_modules/webpack/lib/Compilation.js:821:10)
Aug 01 2019 12:35:39:167 | ...package.json | at factory (/tmp/acefe67/node_modules/webpack/lib/NormalModuleFactory.js:397:22)
Aug 01 2019 12:35:39:167 | ...package.json | at resolver (/tmp/acefe67/node_modules/webpack/lib/NormalModuleFactory.js:130:21)
Aug 01 2019 12:35:39:167 | ...package.json | at asyncLib.parallel (/tmp/acefe67/node_modules/webpack/lib/NormalModuleFactory.js:224:22)
Aug 01 2019 12:35:39:167 | ...package.json | at /tmp/acefe67/node_modules/neo-async/async.js:2830:7
Aug 01 2019 12:35:39:167 | ...package.json | at /tmp/acefe67/node_modules/neo-async/async.js:6877:13
Aug 01 2019 12:35:39:167 | ...package.json | at normalResolver.resolve (/tmp/acefe67/node_modules/webpack/lib/NormalModuleFactory.js:214:25)
Aug 01 2019 12:35:39:167 | ...package.json | at doResolve (/tmp/acefe67/node_modules/enhanced-resolve/lib/Resolver.js:184:12)
Aug 01 2019 12:35:39:167 | ...package.json | at hook.callAsync (/tmp/acefe67/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
Aug 01 2019 12:35:39:167 | ...package.json | at _fn0 (eval at create (/tmp/acefe67/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
Aug 01 2019 12:35:39:167 | ...package.json | at resolver.doResolve (/tmp/acefe67/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:37:5)
Aug 01 2019 12:35:39:167 | ...package.json | at hook.callAsync (/tmp/acefe67/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
Aug 01 2019 12:35:39:167 | ...package.json | at _fn0 (eval at create (/tmp/acefe67/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
Aug 01 2019 12:35:39:167 | ...package.json | at hook.callAsync (/tmp/acefe67/node_modules/enhanced-resolve/lib/Resolver.js:238:5)
Aug 01 2019 12:35:39:167 | ...package.json | at _fn0 (eval at create (/tmp/acefe67/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
Aug 01 2019 12:35:39:167 | ...package.json | at resolver.doResolve (/tmp/acefe67/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:42:38)
Aug 01 2019 12:35:39:167 | ...package.json | resolve 'encoding' in '/tmp/acefe67/node_modules/node-fetch/lib'
Aug 01 2019 12:35:39:167 | ...package.json | Parsed request is a module
Aug 01 2019 12:35:39:167 | ...package.json | using description file: /tmp/acefe67/node_modules/node-fetch/package.json (relative path: ./lib)
Aug 01 2019 12:35:39:167 | ...package.json | resolve as module
Aug 01 2019 12:35:39:167 | ...package.json | looking for modules in /tmp/acefe67/node_modules/next/node_modules
Aug 01 2019 12:35:39:167 | ...package.json | using description file: /tmp/acefe67/node_modules/next/package.json (relative path: ./node_modules)
Aug 01 2019 12:35:39:167 | ...package.json | using description file: /tmp/acefe67/node_modules/next/package.json (relative path: ./node_modules/encoding)
Aug 01 2019 12:35:39:167 | ...package.json | no extension
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/next/node_modules/encoding doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .wasm
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/next/node_modules/encoding.wasm doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .js
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/next/node_modules/encoding.js doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .mjs
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/next/node_modules/encoding.mjs doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .jsx
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/next/node_modules/encoding.jsx doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .json
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/next/node_modules/encoding.json doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .ts
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/next/node_modules/encoding.ts doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .tsx
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/next/node_modules/encoding.tsx doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | as directory
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/next/node_modules/encoding doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/node-fetch/lib/node_modules doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/node-fetch/lib/undefined doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/node-fetch/node_modules doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/node-fetch/undefined doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/node_modules doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/undefined doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/undefined doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/node_modules doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/undefined doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | /node_modules doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | /undefined doesn't exist or is not a directory
Aug 01 2019 12:35:39:167 | ...package.json | looking for modules in /tmp/acefe67/node_modules
Aug 01 2019 12:35:39:167 | ...package.json | using description file: /tmp/acefe67/package.json (relative path: ./node_modules)
Aug 01 2019 12:35:39:167 | ...package.json | using description file: /tmp/acefe67/package.json (relative path: ./node_modules/encoding)
Aug 01 2019 12:35:39:167 | ...package.json | no extension
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/encoding doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .wasm
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/encoding.wasm doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .js
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/encoding.js doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .mjs
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/encoding.mjs doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .jsx
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/encoding.jsx doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .json
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/encoding.json doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .ts
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/encoding.ts doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | .tsx
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/encoding.tsx doesn't exist
Aug 01 2019 12:35:39:167 | ...package.json | as directory
Aug 01 2019 12:35:39:167 | ...package.json | /tmp/acefe67/node_modules/encoding doesn't exist
Aug 01 2019 12:35:39:269 | ...package.json | Done in 6.69s.
Aug 01 2019 12:35:39:276 | ...package.json | running npm install --production...
Aug 01 2019 12:35:39:276 | ...package.json | installing to /tmp/acefe67
Aug 01 2019 12:35:39:633 | ...package.json | yarn install v1.16.0
Aug 01 2019 12:35:39:729 | ...package.json | [1/4] Resolving packages...
Aug 01 2019 12:35:40:119 | ...package.json | [2/4] Fetching packages...
Aug 01 2019 12:35:40:485 | ...package.json | info fsevents@1.2.9: The platform "linux" is incompatible with this module.
Aug 01 2019 12:35:40:485 | ...package.json | info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
Aug 01 2019 12:35:40:488 | ...package.json | [3/4] Linking dependencies...
Aug 01 2019 12:35:40:493 | ...package.json | warning "@zeit/next-typescript > @babel/preset-typescript@7.3.3" has unmet peer dependency "@babel/core@^7.0.0-0".
Aug 01 2019 12:35:40:493 | ...package.json | warning "@zeit/next-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript@7.5.5" has unmet peer dependency "@babel/core@^7.0.0-0".
Aug 01 2019 12:35:40:493 | ...package.json | warning "@zeit/next-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript > @babel/helper-create-class-features-plugin@7.5.5" has unmet peer dependency "@babel/core@^7.0.0".
Aug 01 2019 12:35:40:493 | ...package.json | warning "@zeit/next-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript > @babel/plugin-syntax-typescript@7.3.3" has unmet peer dependency "@babel/core@^7.0.0-0".
Aug 01 2019 12:35:41:366 | ...package.json | [4/4] Building fresh packages...
Aug 01 2019 12:35:41:395 | ...package.json | $ npm run build
Aug 01 2019 12:35:41:618 | ...package.json | npm
Aug 01 2019 12:35:41:618 | ...package.json | WARN lifecycle The node binary used for scripts is /tmp/yarn--1564626941397-0.3949027839017223/node but npm is using /node8/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
Aug 01 2019 12:35:41:618 | ...package.json | > hello-next@1.0.0 build /tmp/acefe67
Aug 01 2019 12:35:41:618 | ...package.json | > next build && tsc --project tsconfig.server.json
Aug 01 2019 12:35:41:623 | ...package.json | sh: next: command not found
Aug 01 2019 12:35:41:624 | ...package.json | npm
Aug 01 2019 12:35:41:624 | ...package.json | ERR! file sh
Aug 01 2019 12:35:41:624 | ...package.json | npm ERR! code ELIFECYCLE
Aug 01 2019 12:35:41:624 | ...package.json | npm ERR!
Aug 01 2019 12:35:41:624 | ...package.json | errno ENOENT
Aug 01 2019 12:35:41:624 | ...package.json | npm ERR! syscall spawn
Aug 01 2019 12:35:41:625 | ...package.json | npm
Aug 01 2019 12:35:41:625 | ...package.json | ERR! hello-next@1.0.0 build: `next build && tsc --project tsconfig.server.json`
Aug 01 2019 12:35:41:625 | ...package.json | npm ERR! spawn ENOENT
Aug 01 2019 12:35:41:625 | ...package.json | npm ERR!
Aug 01 2019 12:35:41:625 | ...package.json | npm
Aug 01 2019 12:35:41:625 | ...package.json | ERR! Failed at the hello-next@1.0.0 build script.
Aug 01 2019 12:35:41:625 | ...package.json | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Aug 01 2019 12:35:41:628 | ...package.json | npm ERR! A complete log of this run can be found in:
Aug 01 2019 12:35:41:628 | ...package.json | npm ERR!     /tmp/.npm/_logs/2019-08-01T02_35_41_626Z-debug.log
Aug 01 2019 12:35:41:642 | ...package.json | error Command failed with exit code 1.
Aug 01 2019 12:35:41:642 | ...package.json | info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Aug 01 2019 12:35:41:665 | ...package.json | Error: Exited with 1
Aug 01 2019 12:35:41:665 | ...package.json | at ChildProcess.child.on (/tmp/72112781da430a4b/.build-utils/.builder/node_modules/@now/next/dist/index.js:24975:24)
Aug 01 2019 12:35:41:665 | ...package.json | at emitTwo (events.js:126:13)
Aug 01 2019 12:35:41:665 | ...package.json | at ChildProcess.emit (events.js:214:7)
Aug 01 2019 12:35:41:665 | ...package.json | at maybeClose (internal/child_process.js:925:16)
Aug 01 2019 12:35:41:665 | ...package.json | at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
Aug 01 2019 12:35:42:325 | ...package.json | done

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

No branches or pull requests

1 participant