-
Notifications
You must be signed in to change notification settings - Fork 130
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]: Can't run with npm run dev
#927
Comments
Second time tried:li@a: added 643 packages, and audited 644 packages in 25s 162 packages are looking for funding 13 vulnerabilities (3 low, 1 moderate, 9 high) To address all issues possible (including breaking changes), run: Some issues need review, and may require choosing Run
/home/li/app/projects/aliahaddotcom/next.config.compiled.js:16 ReferenceError: await is not defined Node.js v22.12.0 |
Duplicates #925 |
next-on-pages environment related information
li@a:~/app/projects/aliahaddotcom$ npx @cloudflare/next-on-pages --info
System:
Platform: linux
Arch: x64
Version: #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Memory: 8 GB
Shell: /bin/bash
Package Manager Used: npm (10.9.0)
Relevant Packages:
@cloudflare/next-on-pages: 1.13.7
vercel: 39.2.2
next: 15.1.0
li@a:~/app/projects/aliahaddotcom$
Description
li@a:~/app/projects/aliahaddotcom$ npm run dev
/home/li/app/projects/aliahaddotcom/next.config.compiled.js:16
await (0, _nextdev.setupDevPlatform)();
^
ReferenceError: await is not defined
at Object. (/home/li/app/projects/aliahaddotcom/next.config.compiled.js:16:5)
at Module._compile (node:internal/modules/cjs/loader:1565:14)
at requireFromString (/home/li/app/projects/aliahaddotcom/node_modules/next/dist/build/next-config-ts/require-hook.js:81:7)
at transpileConfig (/home/li/app/projects/aliahaddotcom/node_modules/next/dist/build/next-config-ts/transpile-config.js:63:51)
at async loadConfig (/home/li/app/projects/aliahaddotcom/node_modules/next/dist/server/config.js:771:36)
at async Module.nextDev (/home/li/app/projects/aliahaddotcom/node_modules/next/dist/cli/next-dev.js:190:14)
Node.js v22.12.0
Reproduction
No response
Pages Deployment Method
Direct Upload (
wrangler pages publish
or the @cloudflare/pages-action GitHub Action)Pages Deployment ID
No response
Additional Information
No response
Would you like to help?
The text was updated successfully, but these errors were encountered: