We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bf98ea commit 37f76b1Copy full SHA for 37f76b1
bin/next-dev
@@ -27,9 +27,9 @@ clean(dir)
27
// Check if pages dir exists and warn if not
28
if (!(await exists(join(dir, 'pages')))) {
29
if (await exists(join(dir, '..', 'pages'))) {
30
- console.warn('> No `pages` directory found. Did you mean to run `next` in the parent (`../`) directory?')
+ throw new Error('> No `pages` directory found. Did you mean to run `next` in the parent (`../`) directory?')
31
} else {
32
- console.warn('> Couldn\'t find a `pages` directory. Please create one under the project root')
+ throw new Error('> Couldn\'t find a `pages` directory. Please create one under the project root')
33
}
34
35
})
0 commit comments