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

error build with-zones #10415

Closed
DamienA24 opened this issue Feb 4, 2020 · 3 comments
Closed

error build with-zones #10415

DamienA24 opened this issue Feb 4, 2020 · 3 comments

Comments

@DamienA24
Copy link

Hello, I tried :

https://github.com/zeit/next.js/tree/canary/examples/with-zones

I follow the instructions and I got this :

@MacBook-Pro  ~/Documents/nextjs  cd with-zones 
 @MacBook-Pro  ~/Documents/nextjs/with-zones  now dev
> Now CLI 16.7.3 dev (beta) — https://zeit.co/feedback
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ WARN! You defined 1 build that did not match any source files (please ensure they are NOT defined in .nowignore): │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
- {"src":"home/next.config.js","use":"@now/next"}
> Creating initial build
Exiting builder due to build error:
Error: Cannot find module 'next'
Require stack:
- /Users/d_/Documents/nextjs/with-zones/blog/noop.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
    at resolveFileName (/Users/d_/Library/Caches/co.zeit.now/dev/builders/node_modules/@now/next/dist/dev-server.js:142:39)
    at resolveFrom (/Users/d_/Library/Caches/co.zeit.now/dev/builders/node_modules/@now/next/dist/dev-server.js:156:9)
    at Object.module.exports.101.module.exports [as default] (/Users/d_/Library/Caches/co.zeit.now/dev/builders/node_modules/@now/next/dist/dev-server.js:159:47)
    at process.<anonymous> (/Users/d_/Library/Caches/co.zeit.now/dev/builders/node_modules/@now/next/dist/dev-server.js:4472:48)
    at Object.onceWrapper (events.js:313:26)
    at process.emit (events.js:223:5)
    at emit (internal/child_process.js:876:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/Users/d_/Documents/nextjs/with-zones/blog/noop.js' ]

What is the problem, I don't understand... thank you

@DamienA24
Copy link
Author

I saw a new commit 14 hours ago, but now the problem is different and it's not working again...

@Timer
Copy link
Member

Timer commented Feb 6, 2020

now dev usage has been undocumented per #10426. Please use the standard next dev command!

@Timer Timer closed this as completed Feb 6, 2020
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
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

3 participants