Skip to content

Commit 72edd59

Browse files
IanMitchellarunoda
authored andcommitted
next/dynamic Error Message Tweaks (vercel#2798)
1 parent c692101 commit 72edd59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dynamic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ export default function dynamicComponent (p, o) {
1313
} else {
1414
// Now we are trying to use the modules and render fields in options to load modules.
1515
if (!p.modules || !p.render) {
16-
const errorMessage = 'Options to `next/dynamic` should contains `modules` and `render` fields.'
16+
const errorMessage = '`next/dynamic` options should contain `modules` and `render` fields'
1717
throw new Error(errorMessage)
1818
}
1919

2020
if (o) {
21-
const errorMessage = 'Include options in the first argument which contains `modules` and `render` fields.'
21+
const errorMessage = 'Add additional `next/dynamic` options to the first argument containing the `modules` and `render` fields'
2222
throw new Error(errorMessage)
2323
}
2424

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy