Buckets:
| title: 'Invalid options type in a `next/dynamic` call' | |
| ## Why This Error Occurred | |
| You have an invalid options type in a `next/dynamic` call. The options must be an object literal. | |
| ## Possible Ways to Fix It | |
| **Before** | |
| ```jsx filename="example.js" | |
| import dynamic from 'next/dynamic' | |
| const options = { loading: () => <p>...</p>, ssr: false } | |
| const DynamicComponent = dynamic(() => import('../components/hello'), options) | |
| ``` | |
| **After** | |
| ```jsx filename="example.js" | |
| import dynamic from 'next/dynamic' | |
| const DynamicComponent = dynamic(() => import('../components/hello'), { | |
| loading: () => <p>...</p>, | |
| ssr: false, | |
| }) | |
| ``` | |
| ## Useful Links | |
| - [Dynamic Import](/docs/pages/guides/lazy-loading) | |
Xet Storage Details
- Size:
- 706 Bytes
- Xet hash:
- e67eddf9d2b55728e31a20a456e25b1f8b6fa655e4c10fbd2b30ef02f9a1cddc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.