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

i can't use npm run dev to use gulp #5599

Closed
crlosif opened this issue Dec 22, 2024 · 3 comments
Closed

i can't use npm run dev to use gulp #5599

crlosif opened this issue Dec 22, 2024 · 3 comments
Labels

Comments

@crlosif
Copy link

crlosif commented Dec 22, 2024

What happened?

I am trying to use gulp as frontend

What should've happened instead?

Additional details


> [email protected] build
> gulp build

SyntaxError: Unexpected token 'with'
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:118:18)
    at callTranslator (node:internal/modules/esm/loader:273:14)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:278:30)
    at async link (node:internal/modules/esm/module_job:76:21)

Here is detailed error

@browniebroke
Copy link
Member

What version of node are you using?

@crlosif
Copy link
Author

crlosif commented Dec 22, 2024

I am using v20.0.8

@browniebroke
Copy link
Member

browniebroke commented Dec 23, 2024

You need to use node 22:

"engines": {
"node": "22.12"
},

That's the only version of node supported by this project. This a new syntax in v22: https://stackoverflow.com/a/79233558/2261637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants