Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
14ef3fcf
Commit
14ef3fcf
authored
Oct 25, 2016
by
Dan Zajdband
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only console error
parent
37f76b16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
next-dev
bin/next-dev
+3
-2
No files found.
bin/next-dev
View file @
14ef3fcf
...
...
@@ -27,10 +27,11 @@ clean(dir)
// Check if pages dir exists and warn if not
if
(
!
(
await
exists
(
join
(
dir
,
'pages'
))))
{
if
(
await
exists
(
join
(
dir
,
'..'
,
'pages'
)))
{
throw
new
E
rror
(
'> No `pages` directory found. Did you mean to run `next` in the parent (`../`) directory?'
)
console
.
e
rror
(
'> No `pages` directory found. Did you mean to run `next` in the parent (`../`) directory?'
)
}
else
{
throw
new
E
rror
(
'> Couldn
\'
t find a `pages` directory. Please create one under the project root'
)
console
.
e
rror
(
'> Couldn
\'
t find a `pages` directory. Please create one under the project root'
)
}
exit
(
1
)
}
})
.
catch
((
err
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment