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
affbc158
Unverified
Commit
affbc158
authored
Oct 06, 2021
by
Jonathan Wu
Committed by
GitHub
Oct 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicting paths grammar (#29658)
parent
9c057851
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
utils.ts
packages/next/build/utils.ts
+1
-1
index.test.js
test/integration/conflicting-ssg-paths/test/index.test.js
+3
-3
No files found.
packages/next/build/utils.ts
View file @
affbc158
...
@@ -1054,7 +1054,7 @@ export function detectConflictingPaths(
...
@@ -1054,7 +1054,7 @@ export function detectConflictingPaths(
})
})
Log
.
error
(
Log
.
error
(
'Conflicting paths returned from getStaticPaths, paths must unique per page.
\
n'
+
'Conflicting paths returned from getStaticPaths, paths must
be
unique per page.
\
n'
+
'See more info here: https://nextjs.org/docs/messages/conflicting-ssg-paths
\
n
\
n'
+
'See more info here: https://nextjs.org/docs/messages/conflicting-ssg-paths
\
n
\
n'
+
conflictingPathsOutput
conflictingPathsOutput
)
)
...
...
test/integration/conflicting-ssg-paths/test/index.test.js
View file @
affbc158
...
@@ -68,7 +68,7 @@ describe('Conflicting SSG paths', () => {
...
@@ -68,7 +68,7 @@ describe('Conflicting SSG paths', () => {
})
})
const
output
=
result
.
stdout
+
result
.
stderr
const
output
=
result
.
stdout
+
result
.
stderr
expect
(
output
).
toContain
(
expect
(
output
).
toContain
(
'Conflicting paths returned from getStaticPaths, paths must unique per page'
'Conflicting paths returned from getStaticPaths, paths must
be
unique per page'
)
)
expect
(
output
).
toContain
(
expect
(
output
).
toContain
(
'https://nextjs.org/docs/messages/conflicting-ssg-paths'
'https://nextjs.org/docs/messages/conflicting-ssg-paths'
...
@@ -121,7 +121,7 @@ describe('Conflicting SSG paths', () => {
...
@@ -121,7 +121,7 @@ describe('Conflicting SSG paths', () => {
})
})
const
output
=
result
.
stdout
+
result
.
stderr
const
output
=
result
.
stdout
+
result
.
stderr
expect
(
output
).
toContain
(
expect
(
output
).
toContain
(
'Conflicting paths returned from getStaticPaths, paths must unique per page'
'Conflicting paths returned from getStaticPaths, paths must
be
unique per page'
)
)
expect
(
output
).
toContain
(
expect
(
output
).
toContain
(
'https://nextjs.org/docs/messages/conflicting-ssg-paths'
'https://nextjs.org/docs/messages/conflicting-ssg-paths'
...
@@ -175,7 +175,7 @@ describe('Conflicting SSG paths', () => {
...
@@ -175,7 +175,7 @@ describe('Conflicting SSG paths', () => {
})
})
const
output
=
result
.
stdout
+
result
.
stderr
const
output
=
result
.
stdout
+
result
.
stderr
expect
(
output
).
toContain
(
expect
(
output
).
toContain
(
'Conflicting paths returned from getStaticPaths, paths must unique per page'
'Conflicting paths returned from getStaticPaths, paths must
be
unique per page'
)
)
expect
(
output
).
toContain
(
expect
(
output
).
toContain
(
'https://nextjs.org/docs/messages/conflicting-ssg-paths'
'https://nextjs.org/docs/messages/conflicting-ssg-paths'
...
...
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