#Failing to deploy the project on Cloudflare Pages and Netlify.
16 messages · Page 1 of 1 (latest)
Can you try building locally?
bhavesh_1thing@Bhaveshs-MacBook-Air freemium-stuff % astro build
11:23:31 AM [build] output target: static
11:23:31 AM [build] Collecting build info...
11:23:31 AM [build] Completed in 5ms.
11:23:31 AM [build] Building static entrypoints...
11:23:32 AM [build] Completed in 645ms.
building client
Completed in 82ms.
generating static routes
▶ src/pages/index.astro
└─ /index.html (+17ms)
▶ src/pages/cheatsheets.astro
└─ /cheatsheets/index.html (+4ms)
▶ src/pages/articles.astro
└─ /articles/index.html (+4ms)
▶ src/pages/courses.astro
└─ /courses/index.html (+3ms)
▶ src/pages/ebooks.astro
└─ /ebooks/index.html (+3ms)
Completed in 36ms.
11:23:32 AM [build] 5 page(s) built in 0.78s
11:23:32 AM [build] Complete!
Yes, I did! It happened flawlessly!
I tried to deploy it on the Netlify, and it also failed with the same error. Here are the logs
Failing to deploy the project on Cloudflare Pages and Netlify.
Hmm strange, did you push your changes to github?
umm, yes! As of now there are no staged changes.
Hey, @crisp hawk Can I delete the dist folder now that I checked the there's no issue in local build?
yup
I think I found the error
hmm
I'm not 100% sure! Will let you know
Casing mistakes ig?
Exactly. In the file structure, its "ui" in small case but I'm importing it with "UI"
Tough luck
1:08:05 PM: 07:38:05 AM [build] Building static entrypoints...
1:08:06 PM: Could not resolve "../components/ui/cards.astro" from "src/pages/cheatsheets.astro"
1:08:06 PM: file: /opt/build/repo/src/pages/cheatsheets.astro
1:08:07 PM: error Could not resolve "../components/ui/cards.astro" from "src/pages/cheatsheets.astro"
1:08:07 PM: File:
1:08:07 PM: /opt/build/repo/src/pages/cheatsheets.astro
1:08:07 PM: Stacktrace:
1:08:07 PM: RollupError: Could not resolve "../components/ui/cards.astro" from "src/pages/cheatsheets.astro"
1:08:07 PM: at error (file:///opt/build/repo/node_modules/rollup/dist/es/shared/rollup.js:2041:30)
1:08:07 PM: at ModuleLoader.handleInvalidResolvedId (file:///opt/build/repo/node_modules/rollup/dist/es/shared/rollup.js:23137:24)
1:08:07 PM: at file:///opt/build/repo/node_modules/rollup/dist/es/shared/rollup.js:23099:26