Vite build fails in Git Actions Pipe: Could not resolve "../Component.tsx" from "../OtherComponent.tsx" #14396
-
So I want to build my React/Vite Project with Github Actions. So I run bun run build, which triggers vite build (full workflow):
Now I get the error that:
Full log: here in actions
I thought that maybe I didnt import the banner correctly:
But all looks good, I also tried:
Locally the build works all the time. And when removing the faulty Banner Component (along with some others [in reality the banner isnt the only trigger]) the vite build runs in the pipe. All the code is available here, the component that imports the triggering components is the home component, and the triggering imports are the:
-> They trigger in this order, so when removing the Banner component the Explore Component triggers the next pipe failure etc. I have many other components as well that run perfectly, it just seems to be that some of the components that I use in the home component let the build fail. What could be the cause for this behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Your directory is refs #964 |
Beta Was this translation helpful? Give feedback.
-
There is another situation when you change only the upper/lower case in file name. This won't get indexed by git |
Beta Was this translation helpful? Give feedback.
Your directory is
Banner
and notbanner
.https://github.com/NkITaa/my-art-onepager/tree/main/src/pages/home/Banner
So you have to use
import Banner from "./Banner/Banner";
refs #964