release: v1.1.0 #63
Annotations
2 errors and 1 warning
Test:
tests/plugin.test.ts#L13
Error: Command failed with exit code 2: webpack
[webpack-cli] Failed to load '/home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/tests/fixtures/mono/app/webpack.config.mjs' config
[webpack-cli] TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:405:5)
at validateString (node:internal/validators:162:11)
at resolve (node:path:1097:7)
at file:///home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/tests/fixtures/mono/app/webpack.config.mjs:6:12
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:429:15)
at async WebpackCLI.tryRequireThenImport (/home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/node_modules/.pnpm/webpack-cli@5.1.4_webpack@5.91.0/node_modules/webpack-cli/lib/webpack-cli.js:266:34)
at async loadConfigByPath (/home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/node_modules/.pnpm/webpack-cli@5.1.4_webpack@5.91.0/node_modules/webpack-cli/lib/webpack-cli.js:1406:27)
at async WebpackCLI.loadConfig (/home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/node_modules/.pnpm/webpack-cli@5.1.4_webpack@5.91.0/node_modules/webpack-cli/lib/webpack-cli.js:1515:38) {
code: 'ERR_INVALID_ARG_TYPE'
}
❯ resolve node:path:1097:7
❯ tests/fixtures/mono/app/webpack.config.mjs:6:12
❯ WebpackCLI.tryRequireThenImport node_modules/.pnpm/webpack-cli@5.1.4_webpack@5.91.0/node_modules/webpack-cli/lib/webpack-cli.js:266:34
❯ loadConfigByPath node_modules/.pnpm/webpack-cli@5.1.4_webpack@5.91.0/node_modules/webpack-cli/lib/webpack-cli.js:1406:27
❯ makeError node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js:60:11
❯ handlePromise node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js:124:26
❯ exec tests/plugin.test.ts:13:20
❯ tests/plugin.test.ts:43:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { shortMessage: 'Command failed with exit code 2: webpack', command: 'webpack', escapedCommand: 'webpack', exitCode: 2, signal: undefined, signalDescription: undefined, stdout: '', stderr: '[webpack-cli] Failed to load \'/home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/tests/fixtures/mono/app/webpack.config.mjs\' config\n[webpack-cli] TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined\n at new NodeError (node:internal/errors:405:5)\n at validateString (node:internal/validators:162:11)\n at resolve (node:path:1097:7)\n at file:///home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/tests/fixtures/mono/app/webpack.config.mjs:6:12\n at ModuleJob.run (node:internal/modules/esm/module_job:195:25)\n at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)\n at async importModuleDynamicallyWrapper (node:internal/vm/module:429:15)\n at async WebpackCLI.tryRequireThenImport (/home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/node_modules/.pnpm/webpack-cli@5.1.4_webpack@5.91.0/node_modules/webpack-cli/lib/webpack-cli.js:266:34)\n at async loadConfigByPath (/home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/node_modules/.pnpm/webpack-cli@5.1.4_webpack@5.91.0/node_modules/webpack-cli/lib/webpack-cli.js:1406:27)\n at async WebpackCLI.loadConfig (/home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/node_modules/.pnpm/webpack-cli@5.1.4_webpack@5.91.0/node_modules/webpack-cli/lib/webpack-cli.js:1515:38) {\n code: \'ERR_INVALID_ARG_TYPE\'\n}', cwd: '/home/runner/work/unplugin-detect-duplicated-deps/unplugin-detect-duplicated-deps/tests/fixtures/mono/app', failed: true, timedOut: false, isCanceled: false, killed: false }
|
Test
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading