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

Compilation error #20

Closed
C0ZEN opened this issue Nov 10, 2023 · 1 comment
Closed

Compilation error #20

C0ZEN opened this issue Nov 10, 2023 · 1 comment
Labels
invalid This doesn't seem right

Comments

@C0ZEN
Copy link

C0ZEN commented Nov 10, 2023

I wanted to test nextjs-styled.
Simply did npm i and npm run dev and got an error.

SyntaxError: Unexpected token '??='
    at wrapSafe (internal/modules/cjs/loader.js:1001:16)
    at Module._compile (internal/modules/cjs/loader.js:1049:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at Module.mod.require (/Users/x/Documents/github/primereact-examples/nextjs-styled-tailwind/node_modules/next/dist/server/require-hook.js:64:28)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (/Users/x/Documents/github/primereact-examples/nextjs-styled-tailwind/node_modules/next/dist/telemetry/post-payload.js:17:19)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:40089) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:40089) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Process finished with exit code 0

Any idea?

@C0ZEN
Copy link
Author

C0ZEN commented Nov 10, 2023

Got the wrong version of node.
Migrated to 18 and it's fine.

@C0ZEN C0ZEN closed this as completed Nov 10, 2023
@melloware melloware added the invalid This doesn't seem right label Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants