Error Deploying to Cloudflare
I have this error when trying to deploy to cloudflare
This is when I try doing
10:55:25.982 {
10:55:25.982 "name": "worker-name",
10:55:25.983 "compatibility_date": "2025-09-12",
10:55:25.983 "assets": {
10:55:25.983 "directory": "./dist"
10:55:25.984 }
10:55:25.985 }
10:55:25.985
How can I get around this?
error during build:
SyntaxError: Unexpected token: keyword (default)
at js_error (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:537:11)
at croak (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:1337:9)
at token_error (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:1345:9)
at unexpected (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:1351:9)
at expr_atom (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:2645:9)
at maybe_unary (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:3513:19)
at expr_ops (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:3588:28)
at maybe_conditional (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:3594:20)
at maybe_assign (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:3671:20)
at expression (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:3706:24)
ELIFECYCLE Command failed with exit code 1.
error during build:
SyntaxError: Unexpected token: keyword (default)
at js_error (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:537:11)
at croak (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:1337:9)
at token_error (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:1345:9)
at unexpected (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:1351:9)
at expr_atom (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:2645:9)
at maybe_unary (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:3513:19)
at expr_ops (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:3588:28)
at maybe_conditional (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:3594:20)
at maybe_assign (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:3671:20)
at expression (C:\Programming Content\memorylink-alpha-convex-tanstack-clerk\node_modules\.pnpm\terser@5.44.0\node_modules\terser\dist\bundle.min.js:3706:24)
ELIFECYCLE Command failed with exit code 1.
pnpm deploy locally
When I try connecting the repo via github and deploying that way this is the error I get
10:55:25.982 If are uploading a directory of assets, you can either:
10:55:25.982 - Specify the path to the directory of assets via the command line: (ex: `npx wrangler deploy --assets=./dist`)
10:55:25.982 - Or create a "wrangler.jsonc" file containing:
10:55:25.982
10:55:25.982
10:55:25.982 If are uploading a directory of assets, you can either:
10:55:25.982 - Specify the path to the directory of assets via the command line: (ex: `npx wrangler deploy --assets=./dist`)
10:55:25.982 - Or create a "wrangler.jsonc" file containing:
10:55:25.982
10:55:25.982
0 Replies