Cannot find module 'next/image'. Did you mean to set the 'moduleResolution'

在启动nextjs项目之后,编辑器中报错提示:
Cannot find module 'next/image'. Did you mean to set the 'moduleResolution'

解决方案是tsconfig.json中配置moduleResolution

"moduleResolution": "Node",

posted @ 2024-04-16 14:22  冰冰biu  阅读(82)  评论(0)    收藏  举报