Skip to content

[npm oxlint] SyntaxError: Unexpected token . #4602

@2096903746

Description

@2096903746

Although oxlint does not depend on Node.js, the npm package encounters syntax errors in lower versions of Node.js (v10.24.1). Could you downgrade the code here to make it compatible with the lower version of Node.js?

/node_modules/oxlint/bin/oxlint:94

let binPath = PLATFORMS[platform]?.[arch]?.[isMusl() ? "musl" : "gnu"];
                                  ^

SyntaxError: Unexpected token .
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

Metadata

Metadata

Assignees

Labels

C-bugCategory - Buggood first issueExperience Level - Good for newcomers

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions