昨天,当 Helm 升级在 Azure DevOps 中的发布管道上运行时,我停止了 Helm 升级,并且以下部署失败。
\n我试图查看失败的图表,目的是删除它,但微服务(“auth”)的图表没有出现。我使用命令 \xc2\xabhelm list -n [namespace_of_AKS]\xc2\xbb 但它没有出现。
\n我可以做什么来解决这个问题?
\nAzure 发布管道中出现错误
\n2022-03-24T08:01:39.2649230Z Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress\n2022-03-24T08:01:39.2701686Z ##[error]Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress\nRun Code Online (Sandbox Code Playgroud)\n\n kubernetes azure-devops azure-pipelines kubernetes-helm azure-aks
我正在尝试使用Chrome调试器扩展在Visual Studio代码中调试我的Typescript代码,但是我在断点上收到"未验证的断点"消息,并且执行不会在我的断点上停止.
这是我的launch.json文件:
{
linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200",
"sourceMaps": true,
"webRoot": "${workspaceFolder}"
}
]
}
Run Code Online (Sandbox Code Playgroud)
应用版本:
我看到如果您有以下Chrome版本__CODE__,则会收到此错误消息.如果我打开Chrome并导航到__CODE__,我可以看到我的Chrome版本__CODE__.当我导航到__CODE__Visual Studio Code时,Chrome的版本显示为__CODE__.
不确定这是否相关,但如何更新Visual Studio Code中显示的Chrome版本,以反映正确的Chrome版本?
关于如何解决这个问题的任何其他建议?
我正在探索使用 React 和 rollup 制作一个组件库。我发现正在使用该库的应用程序以错误的顺序捆绑它。
这导致以下错误:
bundle.js:99 Uncaught Error: Cannot find module 'react/jsx-runtime'
at webpackMissingModule (bundle.js:99)
at Module.../../../component-library/dist/index.es.js
Run Code Online (Sandbox Code Playgroud)
在 Webpack CLI 中我也遇到类似的错误:
ERROR in /.../component-library/dist/index.es.js
Module not found: Error: Can't resolve 'react' in '/.../component-library/dist'
@ /.../component-library/dist/index.es.js 2:0-33 68:18-26
@ ./src/App/index.jsx
@ ./src/index.js
ERROR in /.../component-library/dist/index.es.js
Module not found: Error: Can't resolve 'react/jsx-runtime' in '/.../component-library/dist'
@ /...component-library/dist/index.es.js 1:0-41 74:22-26
@ ./src/App/index.jsx
@ ./src/index.js
Run Code Online (Sandbox Code Playgroud)
我还没有在任何地方发布该库,所以yarn link现在只是使用。
在我的组件库中,我的汇总配置如下所示:
bundle.js:99 Uncaught Error: Cannot find module 'react/jsx-runtime'
at webpackMissingModule (bundle.js:99)
at Module.../../../component-library/dist/index.es.js
Run Code Online (Sandbox Code Playgroud)
我的巴贝尔配置 …
我有一个 React 应用程序,我想开始用 Enzyme 编写单元测试。Enzyme 的文档讨论了高达 16 的 React 版本。
在src/setupTests.js我目前有
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
Run Code Online (Sandbox Code Playgroud)
但我的应用程序使用 React 版本 17.0.1。React 17 有什么酶接头?
我是Azure Service Fabric的新手,也是我遇到的最大问题
当我尝试使用git status或git checkout master或git pull,
我收到一个错误: -
"致命:未知的索引条目格式61740000".
我试图重新初始化现有的Git存储库.但它没有解决问题.
我是git的新手,我刚刚创建了第一个分支并进行了一些更改并尝试提交更改.
尝试在Google上搜索但无法找到代码61740000的正确解决方案.
编辑:删除整个本地存储库,然后再次从远程存储库克隆(git status工作),创建一个分支(git status工作)并对文件进行更改(git status error).
请帮忙.
我尝试在 Windows 10 Pro 工作站上运行 docker 映像,但收到此错误:
docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:80: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Run Code Online (Sandbox Code Playgroud)
我正在运行这个命令:
docker run -d -p 80:80 docker/getting-started
Run Code Online (Sandbox Code Playgroud)
并得到此响应:
Unable to find image 'docker/getting-started:latest' locally
latest: Pulling from docker/getting-started
188c0c94c7c5: Pull complete
617561f33ec6: Pull complete
7d856acdaa9c: Pull complete
a0d3c6e28e6d: Pull complete
af69a9b963c8: Pull complete
0739f3815ad8: Pull complete
7c7b75d0baf8: Pull complete
Digest: sha256:b821569034e3b5fae03b40e64a866017067f3bf17effe185b782bdbf02179528
Status: Downloaded newer …Run Code Online (Sandbox Code Playgroud) 我正在尝试在我的项目上运行 Jest。我使用的是 Windows 10。我在一个测试文件中只有一个测试。
在package.json:
"test": "jest"
Run Code Online (Sandbox Code Playgroud)
我的目录结构:
src/
app/
routeName/
redux/
action.tests.js
Run Code Online (Sandbox Code Playgroud)
我的输出:
No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
In C:\Users\myUsername\Documents\myApp
47 files checked.
testMatch: **/__tests__/**/*.[jt]s?(x), **/?(*.)+(spec|test).[tj]s?(x) - 0 matches
testPathIgnorePatterns: \\node_modules\\ - 47 matches
testRegex: - 0 matches
Pattern: - 0 matches
npm ERR! Test failed. See above for more details.
Run Code Online (Sandbox Code Playgroud)
根据此处的文档,Jest 应该查找test.js名称中包含的任何内容。
我也试过了tests.js,也没用。
我在项目的根目录中创建了一个文件夹,并在其中放置了一个测试,__tests__/tests.js并且确实有效,但我不希望将其放置在那里。
我已经看到了一些关于表面上相似的问题的票和问题,但所有这些都涉及更复杂的配置,或者据称已经修补的错误。我没有设置特殊的配置。文档说这应该有效。我为 Jest 阅读的教程包括我目前使用的确切设置。
我正在使用 …
当我运行Jest覆盖率报告时,它会打印出每种类型的覆盖率和文件的百分比.当有超过4-5行时,显示未覆盖行的最后一列会被截断.有没有办法打印所有未覆盖的线?
-------------------------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
-------------------------------|----------|----------|----------|----------|----------------|
All files | 75.57 | 69.18 | 74.21 | 75.83 | |
js/components/catalyst | 80.74 | 72.97 | 80.16 | 81.85 | |
JobGroup.jsx | 57.14 | 50 | 44.44 | 60 |... 33,34,38,73 |
...etc
Run Code Online (Sandbox Code Playgroud)
这告诉我,JobGroup.jsx有33,34,38和73行,但还有更多,我想一次看到它们.
尝试在服务结构群集中运行我的服务时,"输出"窗口会显示
"应用程序URL未设置或不是HTTP/HTTPS URL,因此浏览器不会打开到应用程序".
我错过了配置步骤吗?
reactjs ×3
javascript ×2
jestjs ×2
unit-testing ×2
azure ×1
azure-aks ×1
azure-devops ×1
babeljs ×1
debugging ×1
docker ×1
enzyme ×1
git ×1
github ×1
iis ×1
kubernetes ×1
rollup ×1
typescript ×1
webpack ×1