error TS2307: Cannot find module on GitHub Actions only #11360
-
I use Vite 3.2.3 for my project with npm. I am getting below errors when running GitHub Action build. Build works fine on my local machine (Windows 11 x64). I checked character casing in paths and looks okay.
This is my tsconfig file:
What else can I check in order to make it work on GitHub Actions? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Ok I fixed it by renaming |
Beta Was this translation helpful? Give feedback.
-
In my case git hadn't detected a case sensitive change in my folder rename. So I run a two step git rename process
Then commit the changed files and push. |
Beta Was this translation helpful? Give feedback.
-
I have been trying to solve this problem for DAYS and the solution happens to be as basic as this command, bruh:
Thank you @skowrons |
Beta Was this translation helpful? Give feedback.
Ok I fixed it by renaming
pages
folder to uppercasePages
. I don't know why it cannot start with lowercase character, like other folders in my project (components
,hooks
etc.), it had problem withpages
folder only.