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 37f76b1 commit 14ef3fcCopy full SHA for 14ef3fc
bin/next-dev
@@ -27,10 +27,11 @@ 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
- throw new Error('> No `pages` directory found. Did you mean to run `next` in the parent (`../`) directory?')
+ console.error('> No `pages` directory found. Did you mean to run `next` in the parent (`../`) directory?')
31
} else {
32
- throw new Error('> Couldn\'t find a `pages` directory. Please create one under the project root')
+ console.error('> Couldn\'t find a `pages` directory. Please create one under the project root')
33
}
34
+ exit(1)
35
36
})
37
.catch((err) => {
0 commit comments