728x90
반응형
외부에서 이미지파일을 불러왔을 때 발생하는 에러.
Error: Invalid src prop (url..) on `next/image`, hostname "hostname.." is not configured under images in your `next.config.js` See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host
next.config.js 에 hostname 뒤에 따옴표로 감싸진 링크를 추가하면 된다.
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
domains: ['hostname..'],
},
}
module.exports = nextConfig
728x90
반응형
'🌳Frontend > error log' 카테고리의 다른 글
[ERROR] Jest encountered an unexpected token.. (0) | 2023.05.24 |
---|---|
[ERROR] TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. (0) | 2023.05.23 |
jest 테스트코드 작성시 Cannot find module (2) | 2023.03.22 |
yarn install Fetching packages... 멈춤현상 (0) | 2023.03.22 |
name can no longer contain capital letter (0) | 2023.03.21 |