-
Notifications
You must be signed in to change notification settings - Fork 735
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
🐛 BUG: SyntaxError, missing ) after argument list #450
Comments
What is in |
Sorry, forgot to provide the whole trace:
|
Ah right! So the file |
I'm not sure what the requirement for |
Oh! The comment that I went off of must have been using the original The only other option for passing in environment variables from a .env file that I could see was to use |
I haven't seen any discussion of this other than #190, which you already mentioned. |
As a workaround you could try using the following: node -r dotenv/config node_modules/wrangler/bin/wrangler.js pages dev ./.svelte-kit/cloudflare But that files does some crazy stuff to turn on node -r dotenv/config node_modules/wrangler/wrangler-dist/cli.js pages dev ./.svelte-kit/cloudflare |
What version of
Wrangler
are you using?0.0.0-bce731a
What operating system are you using?
MacOS
Describe the Bug
When running the command:
node -r dotenv/config node_modules/.bin/wrangler pages dev ./.svelte-kit/cloudflare
(adapted from #190 (comment) for environment variables), Wrangler2 throws aSyntaxError: missing ) after argument list
error (line 2).The
./.svelte-kit/cloudflare
directory contains a_worker.js
and everything works fine if ommiting thenode -r
part.The text was updated successfully, but these errors were encountered: