admin管理员组文章数量:1391937
I am trying to set up Webpack locally and try to run the test,
yarn test
but it failed I don't know how to fix it. I am trying to set up Webpack locally and run its test suite, but I am encountering an error related to "ERR_INVALID_FILE_URL_PATH: File URL path must be absolute" during schema precompilation.
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 for documentation about this command.
error Command failed with exit code 1.
info Visit for documentation about this command.
error Command failed with exit code 1.
info Visit for documentation about this command.
Can someone help me set up Webpack locally or try to fix this problem?
I am trying to set up the webpack locally.
本文标签:
版权声明:本文标题:javascript - Encountering this issue "ERR_INVALID_FILE_URL_PATH: File URL path must be absolute" while running 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744700551a2620538.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论