Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Error #230

Open
dm1001 opened this issue Feb 7, 2024 · 8 comments
Open

Installation Error #230

dm1001 opened this issue Feb 7, 2024 · 8 comments

Comments

@dm1001
Copy link

dm1001 commented Feb 7, 2024

Getting the following error with npm run up:

image

following error with npm run dev:

image

Was able to do prior steps successfully but cant seem to resolve these errors and cant get it up and running,

@dm1001
Copy link
Author

dm1001 commented Feb 7, 2024

Following is the wrangler log if it helps:

--- 2024-02-07T20:01:55.653Z debug
🪵 Writing logs to "C:\Users\WDAGUtilityAccount\AppData\Roaming\xdg.config.wrangler\logs\wrangler-2024-02-07_20-01-55_466.log"

--- 2024-02-07T20:01:55.653Z debug
Failed to load .env file ".env": Error: ENOENT: no such file or directory, open 'C:\Users\WDAGUtilityAccount\sonicjs.env'
at Object.openSync (node:fs:581:18)
at Object.readFileSync (node:fs:460:35)
at tryLoadDotEnv (C:\Users\WDAGUtilityAccount\sonicjs\node_modules\wrangler\wrangler-dist\cli.js:124241:72)
at loadDotEnv (C:\Users\WDAGUtilityAccount\sonicjs\node_modules\wrangler\wrangler-dist\cli.js:124250:12)
at C:\Users\WDAGUtilityAccount\sonicjs\node_modules\wrangler\wrangler-dist\cli.js:162325:20
at C:\Users\WDAGUtilityAccount\sonicjs\node_modules\wrangler\wrangler-dist\cli.js:131115:16
at maybeAsyncResult (C:\Users\WDAGUtilityAccount\sonicjs\node_modules\wrangler\wrangler-dist\cli.js:129336:44)
at C:\Users\WDAGUtilityAccount\sonicjs\node_modules\wrangler\wrangler-dist\cli.js:131114:14
at C:\Users\WDAGUtilityAccount\sonicjs\node_modules\wrangler\wrangler-dist\cli.js:129323:22
at Array.reduce () {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\Users\WDAGUtilityAccount\sonicjs\.env'
}

--- 2024-02-07T20:01:56.217Z log
⛅️ wrangler 3.25.0 (update available �[32m3.27.0�[39m)
�[38;2;255;136;0m-------------------------------------------------------�[39m

@lane711
Copy link
Owner

lane711 commented Feb 7, 2024

Hi, did you create your app via the npx create-sonicjs-app command or from cloning the repo?

@dm1001
Copy link
Author

dm1001 commented Feb 7, 2024

I used npx create-sonicjs-app

@lane711
Copy link
Owner

lane711 commented Feb 7, 2024

looks like a wrangler related error - I haven't seen it before. Have you tried googling it? It could be permissions related on your local directory but that's just a guess

@dm1001
Copy link
Author

dm1001 commented Feb 7, 2024

Yes, found a just few references to it but no solution. I also updated wrangler to latest version but it made no difference. Getting that exact same error every time. I am able to run other wrangler commands no problem like for example wrangler kv:namespace create sonicjs... but no luck with npm run up and npm run dev unfortunately.

@dm1001
Copy link
Author

dm1001 commented Feb 8, 2024

Same problem when using the manual installation approach

@lane711
Copy link
Owner

lane711 commented Feb 8, 2024

are you able to create and run a basic hono app? This is what SonicJs is built on:
npm create hono@latest ./my-app -- --template cloudflare-pages

@dm1001
Copy link
Author

dm1001 commented Feb 8, 2024

That appears to work fine, see screenshot
image
image

Let me know if there is anything else I can try here. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants