简体   繁体   English

应用程序构建:错误 [ERR_PACKAGE_PATH_NOT_EXPORTED]

[英]Application build: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]

I am currently working with jest for my application and I am having this error when running the test npm run test我目前正在为我的应用程序使用 jest,并且在运行测试npm run test时出现此错误

 UnhandledPromiseRejectionWarning: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './internal/Observable' is not defined by "exports" in /Applications/App/node_modules/@nrwl/workspace/node_modules/rxjs/package.json
    at applyExports (internal/modules/cjs/loader.js:491:9)
    at resolveExports (internal/modules/cjs/loader.js:507:23)
    at Function.Module._findPath (internal/modules/cjs/loader.js:635:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1007:27)
    at Function.Module._load (internal/modules/cjs/loader.js:890:27)
    at Module.require (internal/modules/cjs/loader.js:1080:19)

To solve this problem you can try running an audit fix with this command要解决此问题,您可以尝试使用此命令运行审核修复

npm audit fix

This command basically submits a description of the dependencies configured in your package to your default registry and asks for a report of known vulnerabilities.此命令基本上将 package 中配置的依赖项的描述提交到默认注册表,并要求报告已知漏洞。 npm audit checks direct dependencies, devDependencies, bundledDependencies, and optionalDependencies, but does not check peerDependencies. npm 审计检查直接依赖项、devDependencies、bundledDependencies 和 optionalDependencies,但不检查 peerDependencies。 https://docs.npmjs.com/auditing-package-dependencies-for-security-vulnerabilities https://docs.npmjs.com/auditing-package-dependencies-for-security-vulnerabilities

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 纱线开始不工作 | 错误“ERR_PACKAGE_PATH_NOT_EXPORTED” - Yarn start not working | error `ERR_PACKAGE_PATH_NOT_EXPORTED' 错误 [ERR_PACKAGE_PATH_NOT_EXPORTED]:package.json 中没有定义“exports”main - Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in package.json 错误 [ERR_PACKAGE_PATH_NOT_EXPORTED]:包子路径 './src/util/Constants.js' 不是由 \\"exports\\" 定义的 - Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './src/util/Constants.js' is not defined by \"exports\" FIREBASE 函数(错误 [ERR_PACKAGE_PATH_NOT_EXPORTED]:未定义“导出”主要内容) - FIREBASE FUNCTIONS (Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined) 错误 [ERR_PACKAGE_PATH_NOT_EXPORTED]: 包子路径 './dist/types/single-spa-layout-interface' 未由 "exports" 定义 - Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/types/single-spa-layout-interface' is not defined by "exports" in 错误 [ERR_PACKAGE_PATH_NOT_EXPORTED]:@babel/helper-compilation-targets/package.json 中没有解决“导出”主要问题 - Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in@babel/helper-compilation-targets/package.json 我在使用 Graphql-upload [ERR_PACKAGE_PATH_NOT_EXPORTED] 上传图像时遇到问题:没有定义“出口”主要 - I am facing issue while uploading image using Graphql-upload [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined netlify 构建失败:npm ERR! 路径/opt/build/repo/package.json - netlify build failure: npm ERR! path /opt/build/repo/package.json Package 路径。/独立不是从 package 导出的 - Package path ./standalone is not exported from package 找不到模块:包路径。 不从包中导出 - Module not found: Package path . is not exported from package
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM