[BUG] Cloudflare Pages Compile Error
rubenssoto opened this issue · 1 comments
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
I'm trying to deploy on Cloudflare pages and I got this error:
2024-08-14T13:17:24.893946Z Cloning repository...
2024-08-14T13:17:25.633059Z From https://github.com/rubenssoto/morphic
2024-08-14T13:17:25.633631Z * branch a16190a -> FETCH_HEAD
2024-08-14T13:17:25.633746Z
2024-08-14T13:17:25.678616Z HEAD is now at a16190a Merge pull request #307 from miurla/support-image-descriptions
2024-08-14T13:17:25.678958Z
2024-08-14T13:17:25.76632Z
2024-08-14T13:17:25.766802Z Using v2 root directory strategy
2024-08-14T13:17:25.790176Z Success: Finished cloning repository files
2024-08-14T13:17:27.351952Z Checking for configuration in a wrangler.toml configuration file (BETA)
2024-08-14T13:17:27.353093Z
2024-08-14T13:17:27.444295Z No wrangler.toml file found. Continuing.
2024-08-14T13:17:27.600413Z Detected the following tools from environment: bun@1.0.1, nodejs@18.17.1
2024-08-14T13:17:27.601043Z Installing project dependencies: bun install --frozen-lockfile
2024-08-14T13:17:27.875441Z bun install v1.0.1 (31aec4eb)
2024-08-14T13:17:27.896875Z error: lockfile had changes, but lockfile is frozen
2024-08-14T13:17:27.900954Z Error: Exit with error code: 1
2024-08-14T13:17:27.901148Z at ChildProcess. (/snapshot/dist/run-build.js)
2024-08-14T13:17:27.901269Z at Object.onceWrapper (node:events:652:26)
2024-08-14T13:17:27.901369Z at ChildProcess.emit (node:events:537:28)
2024-08-14T13:17:27.901472Z at ChildProcess._handle.onexit (node:internal/child_process:291:12)
2024-08-14T13:17:27.908102Z Failed: build command exited with code: 1
2024-08-14T13:17:28.786375Z Failed: error occurred while running build command
Expected Behavior
It should work like the steps available on the readme
Steps To Reproduce
Follow the steps to deploy on Cloudflare pages on the README
Environment
Cloudflare Pages
Anything else?
No response
The deployment failed due to changes in the bun.lockb
file. The --frozen-lockfile
option expects no changes, but modifications were detected. To resolve this:
- Run
bun install
locally to updatebun.lockb
- Commit and push the updated lockfile
- Redeploy on Cloudflare Pages
Alternatively, modify the build command to use --no-frozen-lockfile
.
However, as mentioned in the README, there are some errors with the deployment on Cloudflare Pages. These errors have not been fixed: #114