1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

next/dynamic Error Message Tweaks (#2798)

This commit is contained in:
Ian Mitchell 2017-08-17 09:11:52 -07:00 committed by Arunoda Susiripala
parent c692101649
commit 72edd591e6

View file

@ -13,12 +13,12 @@ export default function dynamicComponent (p, o) {
} else {
// Now we are trying to use the modules and render fields in options to load modules.
if (!p.modules || !p.render) {
const errorMessage = 'Options to `next/dynamic` should contains `modules` and `render` fields.'
const errorMessage = '`next/dynamic` options should contain `modules` and `render` fields'
throw new Error(errorMessage)
}
if (o) {
const errorMessage = 'Include options in the first argument which contains `modules` and `render` fields.'
const errorMessage = 'Add additional `next/dynamic` options to the first argument containing the `modules` and `render` fields'
throw new Error(errorMessage)
}