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

Can't run it locally #98

Open
sarim2000 opened this issue Sep 12, 2023 · 10 comments
Open

Can't run it locally #98

sarim2000 opened this issue Sep 12, 2023 · 10 comments

Comments

@sarim2000
Copy link

After setting up .vars.toml file, and then running yarn dev/npm run dev it gives
CLOUDFLARE_ACCOUNT_ID not an internal or external similar for each variable

@wenbinf
Copy link
Member

wenbinf commented Sep 13, 2023

Can you post full error message (or screenshot) here? This will make troubleshooting easier. Thanks!

@sarim2000
Copy link
Author

sarim2000 commented Sep 13, 2023

image
steps
save variables in .vars.toml
then run npm run dev
on Windows 11

@wenbinf
Copy link
Member

wenbinf commented Sep 13, 2023

Where do you place the .vars.toml ?

It should be under the root directory, at the same level as package.json

@sarim2000
Copy link
Author

Where do you place the .vars.toml ?

It should be under the root directory, at the same level as package.json

yup; I did that too

@wenbinf
Copy link
Member

wenbinf commented Sep 13, 2023

How does your .vars.toml file look like?

You can copy & paste here and remove all the secret values (or replace with some placeholders)

Bear with me - remote troubleshooting based on texts is difficult. We have to guess... A lot of guesses...

@wenbinf
Copy link
Member

wenbinf commented Sep 13, 2023

One way to troubleshoot on your end (by yourself) is to instrument some console.log in the scripts. After all, this is an opensource project and you have all the source code.

And this could be a great pull request to make to make the local dev experience better -

@sarim2000
Copy link
Author

CLOUDFLARE_PROJECT_NAME = "dasasdasd"
CLOUDFLARE_ACCOUNT_ID = ""
CLOUDFLARE_API_TOKEN = ""
R2_ACCESS_KEY_ID = ""
R2_SECRET_ACCESS_KEY = ""

@wenbinf
Copy link
Member

wenbinf commented Sep 13, 2023

Your .vars.toml looks good to me. I'm afraid I run out of guesses on what went wrong on your end..

We'll leave this issue open. Maybe people who run into similar issues will be able to chime in.

One way to troubleshoot on your end (by yourself) is to instrument some console.log in the scripts. After all, this is an opensource project and you have all the source code.

And this could be a great pull request to make to make the local dev experience better -

@sarim2000
Copy link
Author

sarim2000 commented Sep 13, 2023

weird this is

it works on mac os though; for my same .vars.toml and linux too

@wenbinf
Copy link
Member

wenbinf commented Sep 13, 2023

sounds like a Windows-specific issue...

anyways, we'll leave the issue open. This could be a good pull request if anyone is interested to make it work on Windows.

I might find some time myself to tackle it - but first) need to find time, second) setup a Windows virtual machine :)

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