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

SyntaxError: Unexpected token '??=' ?[90m at wrapSafe (internal/modules/cjs/loader.js:1029:16)?[39m #4289

Closed
zhaosheng808 opened this issue Dec 10, 2024 · 1 comment

Comments

@zhaosheng808
Copy link

zhaosheng808 commented Dec 10, 2024

nodeVersion: v14.21.3
[email protected] update to [email protected], The following error will be prompted:

SyntaxError: Unexpected token '??='
?[90m    at wrapSafe (internal/modules/cjs/loader.js:1029:16)?[39m
?[90m    at Module._compile (internal/modules/cjs/loader.js:1078:27)?[39m
?[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)?[39m
?[90m    at Module.load (internal/modules/cjs/loader.js:979:32)?[39m
?[90m    at Function.Module._load (internal/modules/cjs/loader.js:819:12)?[39m
?[90m    at Module.require (internal/modules/cjs/loader.js:1003:19)?[39m
?[90m    at require (internal/modules/cjs/helpers.js:107:18)?[39m
    at Object.<anonymous> (F:\work-gitlab\video-grab\node_modules\?[4mundici?[24m\lib\dispatcher\client.js:8:14)
?[90m    at Module._compile (internal/modules/cjs/loader.js:1114:14)?[39m
?[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)?[39m

I found that it should be caused by this new dependencies "undici": "^6.19.5",.
undici 6.19.5
I hope to achieve compatibility。

@fb55
Copy link
Member

fb55 commented Dec 25, 2024

Unfortunately Cheerio's minimum NodeJS version had to be bumped to 18. Please update to a runtime that is not abandoned.

@fb55 fb55 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants