2023-10-17 11:07:31 +00:00
|
|
|
import { createError } from '../composables/error'
|
|
|
|
|
|
|
|
function renderStubMessage (name: string) {
|
|
|
|
throw createError({
|
|
|
|
fatal: true,
|
|
|
|
statusCode: 500,
|
2024-04-05 18:08:32 +00:00
|
|
|
statusMessage: `${name} is provided by @nuxt/image. Check your console to install it or run 'npx nuxi@latest module add @nuxt/image'`,
|
2023-10-17 11:07:31 +00:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export const NuxtImg = {
|
2024-04-05 18:08:32 +00:00
|
|
|
setup: () => renderStubMessage('<NuxtImg>'),
|
2023-10-17 11:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const NuxtPicture = {
|
2024-04-05 18:08:32 +00:00
|
|
|
setup: () => renderStubMessage('<NuxtPicture>'),
|
2023-10-17 11:07:31 +00:00
|
|
|
}
|