Magick
CDCloudflare Developers
•Created by Magick on 11/16/2024 in #pages-help
Usage Error: Unsupported package manager specification ([email protected],bun,1.1.30)
Hello
I'm trying to deploy a nextjs application.
I've connected it to my github repo, but when it tries to build, it fails with the following:
I'm not sure why its trying to use
yarn
as this is not used in the project. There was a yarn lock file in the repo, but even after removing this the same error as above occurs.
Any help is greatly appreciated.1 replies
CDCloudflare Developers
•Created by Magick on 9/29/2024 in #workers-help
Uncaught ReferenceError: Buffer is not defined
Hello
I'm getting the following error:
I have added
compatibility_flags = [ "nodejs_compat" ]
and am importing node:buffer
.
Does anyone have any other suggestions?
Thanks and kind regards2 replies
CDCloudflare Developers
•Created by Magick on 7/18/2024 in #pages-help
workers.api.error.script_not_found [code: 8000068]
Hello
I have two Next js web applications, that, after some experimenting, builds and deploys.
However nothing displays in the browser.
And when tailing the logs in both, I see the same:
Does anyone know how to resolve this?
16 replies
CDCloudflare Developers
•Created by Magick on 7/18/2024 in #pages-help
Failed: build output directory contains links to files that can't be accessed
Hello
I'm trying to build and deploy a Next.js application on CF Pages, but, the build ultimately fails with:
I did find a github issue about this - https://github.com/cloudflare/workers-sdk/issues/2674 - which is closed, but there isnt any clear solution to this.
Can anyone help?
1 replies
CDCloudflare Developers
•Created by Magick on 7/14/2024 in #pages-help
Bun and Environment Variables - how?
I'm trying to read environment variables and everything I try seems to fail.
Here are some of the attempts and issues.
- Using
import { env } from "bun";
results in ERROR: Could not resolve "bun"
.
- const test_env = process.env.TEST_ENV;
results in Uncaught ReferenceError: process is not defined
17 replies
CDCloudflare Developers
•Created by Magick on 7/12/2024 in #pages-help
Error: Dynamic require of "node:buffer" is not supported
I re-deployed my sveltekit pages project. I hadnt added any new dependencies. I also havent upgraded any existing dependencies.
However, I'm now getting an error 500. And when I tail the logs I see:
Any idea how I resolve this?
2 replies
CDCloudflare Developers
•Created by Magick on 7/2/2024 in #pages-help
Pages, Sveltekit and Environment variables
Hello,
I'm trying to use Cloudflare pages to deloy our web application.
However I'm getting errors in the build for each env var, public or private.
I've tried adding these in both the
wrangler.tom
and in the settings > environment variables
tab. Neither has any effect on the build errors.
My build command, from the package.json
file is "build": "npx svelte-kit sync && npx svelte-check && vite build",
Any help is appreciated.
----
It seems many others are having the same problem and no one has found a solution.7 replies