Skip to content

module,src: add --experimental-entry-url flag #43931

module,src: add --experimental-entry-url flag

module,src: add --experimental-entry-url flag #43931

Triggered via pull request September 30, 2023 07:51
Status Failure
Total duration 2h 5m 6s
Artifacts

test-macos.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
test-macOS: test/es-module/test-esm-loader-search.js#L13
--- stderr --- node:assert:635 throw err; ^ AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: + actual - expected Comparison { + code: 'ERR_INVALID_URL', + message: 'Invalid URL', + name: 'TypeError' - code: 'ERR_MODULE_NOT_FOUND', - message: /Cannot find package 'target'/, - name: 'Error' } at Object.<anonymous> (/Users/runner/work/node/node/test/es-module/test-esm-loader-search.js:13:8) at Module._compile (node:internal/modules/cjs/loader:1369:14) at Module._extensions..js (node:internal/modules/cjs/loader:1427:10) at Module.load (node:internal/modules/cjs/loader:1201:32) at Module._load (node:internal/modules/cjs/loader:1017:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:106:12) at node:internal/main/run_main_module:24:47 { generatedMessage: true, code: 'ERR_ASSERTION', actual: TypeError: Invalid URL at new URL (node:internal/url:783:36) at defaultResolve (node:internal/modules/esm/resolve:1072:16) at assert.throws.code (/Users/runner/work/node/node/test/es-module/test-esm-loader-search.js:14:9) at getActual (node:assert:756:5) at Function.throws (node:assert:902:24) at Object.<anonymous> (/Users/runner/work/node/node/test/es-module/test-esm-loader-search.js:13:8) at Module._compile (node:internal/modules/cjs/loader:1369:14) at Module._extensions..js (node:internal/modules/cjs/loader:1427:10) at Module.load (node:internal/modules/cjs/loader:1201:32) at Module._load (node:internal/modules/cjs/loader:1017:12) { code: 'ERR_INVALID_URL', input: 'target' }, expected: { code: 'ERR_MODULE_NOT_FOUND', name: 'Error', message: /Cannot find package 'target'/ }, operator: 'throws' } Node.js v21.0.0-pre Command: out/Release/node --expose-internals --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /Users/runner/work/node/node/test/es-module/test-esm-loader-search.js
test-macOS: test/es-module/test-esm-resolve-type.mjs#L1
--- stderr --- node:internal/url:783 this.#updateContext(bindingUrl.parse(input, base)); ^ TypeError: Invalid URL at new URL (node:internal/url:783:36) at defaultResolve (node:internal/modules/esm/resolve:1072:16) at file:///Users/runner/work/node/node/test/es-module/test-esm-resolve-type.mjs:88:27 at ModuleJob.run (node:internal/modules/esm/module_job:218:25) at async ModuleLoader.import (node:internal/modules/esm/loader:328:24) at async loadESM (node:internal/process/esm_loader:34:7) at async handleMainPromise (node:internal/modules/run_main:86:12) { code: 'ERR_INVALID_URL', input: 'test-module-mainjs' } Node.js v21.0.0-pre Command: out/Release/node --expose-internals --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /Users/runner/work/node/node/test/es-module/test-esm-resolve-type.mjs
test-macOS: test/es-module/test-esm-type-flag-loose-files.mjs#L1
--- stderr --- node:internal/modules/cjs/loader:1198 throw new ERR_REQUIRE_ESM(filename, true); ^ [Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/runner/work/node/node/test/es-module/test-esm-type-flag-loose-files.mjs not supported. Instead change the require of /Users/runner/work/node/node/test/es-module/test-esm-type-flag-loose-files.mjs to a dynamic import() which is available in all CommonJS modules.] { code: 'ERR_REQUIRE_ESM' } Node.js v21.0.0-pre Command: out/Release/node --experimental-default-type=module --experimental-wasm-modules --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /Users/runner/work/node/node/test/es-module/test-esm-type-flag-loose-files.mjs
test-macOS: test/es-module/test-esm-type-flag-errors.mjs#L14
--- stdout --- ::debug::starting to run --experimental-default-type=module should not affect the interpretation of files with unknown extensions β–Ά --experimental-default-type=module should not affect the interpretation of files with unknown extensions βœ– should error on an entry point with an unknown extension (72.680689ms) AssertionError [ERR_ASSERTION]: The input did not match the regular expression /ERR_UNKNOWN_FILE_EXTENSION/. Input: '(node:57802) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.\n' + '(Use `node --trace-warnings ...` to show where the warning was created)\n' + '/Users/runner/work/node/node/test/fixtures/es-modules/package-type-module/extension.unknown:1\n' + "export default 'unknown';\n" + '^^^^^^\n' + '\n' + "SyntaxError: Unexpected token 'export'\n" + ' at internalCompileFunction (node:internal/vm:73:18)\n' + ' at wrapSafe (node:internal/modules/cjs/loader:1279:20)\n' + ' at Module._compile (node:internal/modules/cjs/loader:1333:27)\n' + ' at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)\n' + ' at Module.load (node:internal/modules/cjs/loader:1201:32)\n' + ' at Module._load (node:internal/modules/cjs/loader:1017:12)\n' + ' at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:106:12)\n' + ' at node:internal/main/run_main_module:24:47\n' + '\n' + 'Node.js v21.0.0-pre\n' at TestContext.<anonymous> (file:///Users/runner/work/node/node/test/es-module/test-esm-type-flag-errors.mjs:14:14) at async Test.run (node:internal/test_runner/test:632:9) at async Promise.all (index 0) at async Suite.run (node:internal/test_runner/test:948:7) at async startSubtest (node:internal/test_runner/harness:216:3) { generatedMessage: true, code: 'ERR_ASSERTION', actual: '(node:57802) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.\n(Use `node --trace-warnings ...` to show where the warning was created)\n/Users/runner/work/node/node/test/fixtures/es-modules/package-type-module/extension.unknown:1\nexport default \'unknown\';\n^^^^^^\n\nSyntaxError: Unexpected token \'export\'\n at internalCompileFunction (node:internal/vm:73:18)\n at wrapSafe (node:internal/modules/cjs/loader:1279:20)\n at Module._compile (node:internal/modules/cjs/loader:1333:27)\n...', expected: /ERR_UNKNOWN_FILE_EXTENSION/, operator: 'match' } βœ– should error on an import with an unknown extension (65.697083ms) AssertionError [ERR_ASSERTION]: The input did not match the regular expression /ERR_UNKNOWN_FILE_EXTENSION/. Input: 'node:internal/modules/cjs/loader:1198\n' + ' throw new ERR_REQUIRE_ESM(filename, true);\n' + ' ^\n' + '\n' + '[Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/runner/work/node/node/test/fixtures/es-modules/package-type-module/imports-unknownext.mjs not supported.\n' + 'Instead change the require of /Users/runner/work/node/node/test/fixtures/es-modules/package-type-module/imports-unknownext.mjs to a dynamic import() which is available in all CommonJS modules.] {\n' + " code: 'ERR_REQUIRE_ESM'\n" + '}\n' + '\n' + 'Node.js v21.0.0-pre\n' at TestContext.<anonymous> (file:///Users/runner/work/node/node/test/es-module/test-esm-type-flag-errors.mjs:26:14) at async Test.run (node:internal/test_runner/test:632:9) at async Promise.all (index 1) at async Suite.run (node:internal/test_runner/test:948:7) at async startSubtest (node:internal/test_runner/harness:216:3) { generatedMessage: true, code: 'ERR_ASSERTION', actual: "node:internal/modules/cjs/loader:1198\n throw new ERR_REQUIRE_ESM(filename, true);\n ^\n\n[Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/runner/work/node/node/test/fixtures/es-modules/package-type-module/imp
test-macOS: test/es-module/test-esm-type-flag-package-scopes.mjs#L1
--- stderr --- node:internal/modules/cjs/loader:1198 throw new ERR_REQUIRE_ESM(filename, true); ^ [Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/runner/work/node/node/test/es-module/test-esm-type-flag-package-scopes.mjs not supported. Instead change the require of /Users/runner/work/node/node/test/es-module/test-esm-type-flag-package-scopes.mjs to a dynamic import() which is available in all CommonJS modules.] { code: 'ERR_REQUIRE_ESM' } Node.js v21.0.0-pre Command: out/Release/node --experimental-default-type=module --experimental-wasm-modules --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /Users/runner/work/node/node/test/es-module/test-esm-type-flag-package-scopes.mjs
test-macOS
Process completed with exit code 2.