#Failing to deploy the project on Cloudflare Pages and Netlify.

16 messages · Page 1 of 1 (latest)

cobalt zephyr
#

I'm not able to deploy the project on the Cloudflare Pages due to build (Failed: build command exited with code: 1) I have the attached the log file. I've checked the import file too that shows in the error and the dev server is fine with the imports. Let me know what I'm doing wrong.

Thanks!

crisp hawk
#

Can you try building locally?

cobalt zephyr
#
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!
cobalt zephyr
cobalt zephyr
#

Failing to deploy the project on Cloudflare Pages and Netlify.

crisp hawk
#

Hmm strange, did you push your changes to github?

cobalt zephyr
#

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?

cobalt zephyr
#

I think I found the error

crisp hawk
#

hmm

cobalt zephyr
#

I'm not 100% sure! Will let you know

crisp hawk
#

Casing mistakes ig?

cobalt zephyr
#

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