yarn test
< /code>
Но это не удалось, я не знаю, как это исправить. Я пытаюсь настроить WebPack локально и запустить его тестовый набор, но я сталкиваюсь с ошибкой, связанной с «ERR_INVALID_FILE_URL_PATH: Путь URL -файла должен быть абсолютным» во время предварительного спуска схемы. < /P>
yarn run v1.22.22
$ yarn lint
$ yarn setup
$ node ./setup/setup.js
$ yarn code-lint && yarn special-lint && yarn type-lint && yarn typings-test && yarn module-typings-test && yarn yarn-lint && yarn pretty-lint && yarn spellcheck
$ node node_modules/eslint/bin/eslint.js --cache .
(node:8860) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
$ node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/format-file-header && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals
node:internal/url:1433
throw new ERR_INVALID_FILE_URL_PATH('must be absolute');
^
TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must be absolute
during precompilation of D:/GSOC/webpack/schemas/plugins/asset/AssetGeneratorOptions.json
at getPathFromURLWin32 (node:internal/url:1433:11)
at fileURLToPath (node:internal/url:1464:35)
at loadSchema (D:\GSOC\webpack\node_modules\tooling\precompile-schemas\index.js:21:16)
at Ajv._loadSchema (D:\GSOC\webpack\node_modules\tooling\node_modules\ajv\dist\core.js:207:52)
at Ajv.loadMissingSchema (D:\GSOC\webpack\node_modules\tooling\node_modules\ajv\dist\core.js:196:47)
at Ajv._compileAsync (D:\GSOC\webpack\node_modules\tooling\node_modules\ajv\dist\core.js:186:41)
at Ajv.runCompileAsync (D:\GSOC\webpack\node_modules\tooling\node_modules\ajv\dist\core.js:171:50)
at async precompileSchema (D:\GSOC\webpack\node_modules\tooling\precompile-schemas\index.js:211:20) {
code: 'ERR_INVALID_FILE_URL_PATH'
}
Node.js v20.15.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
может кто -нибудь помочь мне настроить Webpack локально или попытаться решить эту проблему?>
Я пытаюсь настроить Webpack локально и попытаться запустить тест, < /p> [code]yarn test < /code> Но это не удалось, я не знаю, как это исправить. Я пытаюсь настроить WebPack локально и запустить его тестовый набор, но я сталкиваюсь с ошибкой, связанной с «ERR_INVALID_FILE_URL_PATH: Путь URL -файла должен быть абсолютным» во время предварительного спуска схемы. < /P> yarn run v1.22.22 $ yarn lint $ yarn setup $ node ./setup/setup.js $ yarn code-lint && yarn special-lint && yarn type-lint && yarn typings-test && yarn module-typings-test && yarn yarn-lint && yarn pretty-lint && yarn spellcheck $ node node_modules/eslint/bin/eslint.js --cache . (node:8860) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time (Use `node --trace-warnings ...` to show where the warning was created) $ node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/format-file-header && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals node:internal/url:1433 throw new ERR_INVALID_FILE_URL_PATH('must be absolute'); ^
TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must be absolute during precompilation of D:/GSOC/webpack/schemas/plugins/asset/AssetGeneratorOptions.json at getPathFromURLWin32 (node:internal/url:1433:11) at fileURLToPath (node:internal/url:1464:35) at loadSchema (D:\GSOC\webpack\node_modules\tooling\precompile-schemas\index.js:21:16) at Ajv._loadSchema (D:\GSOC\webpack\node_modules\tooling\node_modules\ajv\dist\core.js:207:52) at Ajv.loadMissingSchema (D:\GSOC\webpack\node_modules\tooling\node_modules\ajv\dist\core.js:196:47) at Ajv._compileAsync (D:\GSOC\webpack\node_modules\tooling\node_modules\ajv\dist\core.js:186:41) at Ajv.runCompileAsync (D:\GSOC\webpack\node_modules\tooling\node_modules\ajv\dist\core.js:171:50) at async precompileSchema (D:\GSOC\webpack\node_modules\tooling\precompile-schemas\index.js:211:20) { code: 'ERR_INVALID_FILE_URL_PATH' }
Node.js v20.15.0 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. [/code] может кто -нибудь помочь мне настроить Webpack локально или попытаться решить эту проблему?>