Skip to content

ESM require( ) error #1

@Fasteroid

Description

@Fasteroid

Followed the install instructions exactly as described and it didn't work.

node:internal/modules/cjs/loader:1309
    throw new ERR_REQUIRE_ESM(filename, true);
    ^

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\Caleb\Source\GitHub\iOS-WebKit-Debug\node_modules\yargs\index.mjs not supported.
Instead change the require of C:\Users\Caleb\Source\GitHub\iOS-WebKit-Debug\node_modules\yargs\index.mjs to a dynamic import() which is available in all CommonJS modules.
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at Object.<anonymous> (C:\Users\Caleb\Source\GitHub\iOS-WebKit-Debug\serve.js:5:15) {
  code: 'ERR_REQUIRE_ESM'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions