itsanameidk
itsanameidk
Explore posts from servers
CDCloudflare Developers
Created by itsanameidk on 11/3/2023 in #general-help
Configuring Application Cloudflare errors
Hey im following https://developers.cloudflare.com/pages/framework-guides/deploy-a-svelte-site/ and ran
npm create cloudflare@latest my-svelte-app -- --framework=svelte
npm create cloudflare@latest my-svelte-app -- --framework=svelte
anyone know why id be getting this error and how to fix it?
╭ Configuring your application for Cloudflare Step 2 of 3

├ Installing dependencies
│ installed via `npm install`

├ Adding the Cloudflare Pages adapter
│ npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\@sveltejs\adapter-cloudflare/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\@sveltejs\adapter-cloudflare\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_06_25_533Z-debug-0.log


Error: npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\@sveltejs\adapter-cloudflare/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\@sveltejs\adapter-cloudflare\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_06_25_533Z-debug-0.log

npm ERR! code 1
npm ERR! path C:\Users\josep\OneDrive\Desktop\asdasasddasdasasdasdasdasdasd
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-cloudflare my-svelte-app --framework=svelte

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_05_53_585Z-debug-0.log
╭ Configuring your application for Cloudflare Step 2 of 3

├ Installing dependencies
│ installed via `npm install`

├ Adding the Cloudflare Pages adapter
│ npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\@sveltejs\adapter-cloudflare/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\@sveltejs\adapter-cloudflare\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_06_25_533Z-debug-0.log


Error: npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\@sveltejs\adapter-cloudflare/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\@sveltejs\adapter-cloudflare\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_06_25_533Z-debug-0.log

npm ERR! code 1
npm ERR! path C:\Users\josep\OneDrive\Desktop\asdasasddasdasasdasdasdasdasd
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-cloudflare my-svelte-app --framework=svelte

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_05_53_585Z-debug-0.log
1 replies
CDCloudflare Developers
Created by itsanameidk on 2/6/2023 in #workers-help
Cannot build with github actions
Hey i can do wrangler publish but i cannot seem to publish through github actions with the wrangler actions https://github.com/cloudflare/wrangler-action
✘ [ERROR] Could not resolve "hono"

src/constants.ts:1:21:
1 │ import { Hono } from "hono";
╵ ~~~~~~

You can mark the path "hono" as external to exclude it from the bundle, which will remove this error.


✘ [ERROR] Build failed with 1 error:

src/constants.ts:1:21: ERROR: Could not resolve "hono"
✘ [ERROR] Could not resolve "hono"

src/constants.ts:1:21:
1 │ import { Hono } from "hono";
╵ ~~~~~~

You can mark the path "hono" as external to exclude it from the bundle, which will remove this error.


✘ [ERROR] Build failed with 1 error:

src/constants.ts:1:21: ERROR: Could not resolve "hono"
i just seem to get this error anyone know how to fix?
2 replies
CDCloudflare Developers
Created by itsanameidk on 2/5/2023 in #workers-help
Multiple files
Is there a way to have multiple files so i can break the requests up into their own file instead of having one big file?
6 replies