vercelにdeployしていて最新の変更を反映させたいのですが、
buildでエラーが起きて反映されません。
pathは間違っていないので、以下のエラーの理解ができません。
エラー内容
error
1./src/components/pages/home/ProfileTabs/Skills/index.tsx:2:23 2Type error: Cannot find module 'src/components/ui/Image' or its corresponding type declarations. 3 1 | import { Box, Flex, Text, Grid, GridItem } from '@chakra-ui/react' 4> 2 | import { Image } from 'src/components/ui/Image' 5 | ^ 6 3 | import { staticPath } from 'src/lib/$path' 7 4 | import { CameraMovieIcon } from 'src/components/ui/Icon/CameraMovieIcon' 8 5 | 9error Command failed with exit code 1. 10info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 11Error: Command "yarn run build" exited with 1
packege.json
1{ 2 "name": "natsumi-app", 3 "version": "0.1.0", 4 "private": true, 5 "scripts": { 6 "dev": "run-p dev:*", 7 "dev:next": "next dev", 8 "dev:path": "pathpida --enableStatic --watch", 9 "build": "pathpida --enableStatic && next build", 10 "start": "next start", 11 "lint": "next lint", 12 "typecheck": "tsc --noEmit", 13 "format": "prettier --write \"./src/**/*.{ts,tsx}\"" 14 }, 15 "dependencies": { 16 "@chakra-ui/icons": "^1.1.7", 17 "@chakra-ui/react": "^1.8.8", 18 "@emotion/react": "^11.9.0", 19 "@emotion/styled": "^11.8.1", 20 "framer-motion": "^6.3.3", 21 "next": "12.1.6", 22 "react": "18.1.0", 23 "react-dom": "18.1.0", 24 "react-icons": "^4.3.1" 25 }, 26 "devDependencies": { 27 "@types/node": "^17.0.31", 28 "@types/react": "^18.0.8", 29 "@types/react-scroll": "^1.8.3", 30 "eslint": "8.14.0", 31 "eslint-config-next": "12.1.6", 32 "npm-run-all": "^4.1.5", 33 "pathpida": "^0.18.1", 34 "prettier": "2.6.2", 35 "react-scroll": "^1.8.7", 36 "typescript": "^4.6.4" 37 } 38}

回答1件
あなたの回答
tips
プレビュー