小编Ol_*_*l_D的帖子

无法在 Windows 10 上构建 Docker 映像

视窗 10 专业版 1909
Docker 2.2.0.4 (43472)

Dockerfile 像这样开始:

FROM debian:stable-20191118
Run Code Online (Sandbox Code Playgroud)

这是唯一有效的部分(或任何其他类似的 linux ubuntu:18.04
任何下一行,就像这些

RUN DEBIAN_FRONTEND=noninteractive
RUN LC_ALL=en_US.UTF-8
RUN apt-get update -y && apt-get install -y nginx
Run Code Online (Sandbox Code Playgroud)

得到同样的错误:

The command '/bin/sh -c (insert any of the commands above)' returned a non-zero code: 4294967295:
failed to shutdown container: container ad12191abf0849d5e49bb5dc0570d6ba8eaf2cc5b4e7d77127ed381901fcb672 
encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: 
The virtual machine or container with the specified identifier is not running. (0xc0370110): 
subsequent terminate failed container ad12191abf0849d5e49bb5dc0570d6ba8eaf2cc5b4e7d77127ed381901fcb672 …
Run Code Online (Sandbox Code Playgroud)

linux windows docker

10
推荐指数
1
解决办法
6089
查看次数

Jest 找不到 SCSS 模块

这是我的代码(只是一个非常基本的设置)。所有文件都在同一个文件夹中。
我正在使用create-react-app.

用户.tsx:

import React from "react";
import styles from "./User.module.scss";

const User: React.FC = () => {
  return <div className={styles.user}>User</div>;
};

export default User;
Run Code Online (Sandbox Code Playgroud)

用户.module.scss:

@import "scss/abstracts";

.user {
  color: $dark_theme_color;
}
Run Code Online (Sandbox Code Playgroud)

用户.test.tsx:

import React from "react";
import { render, getByText } from "@testing-library/react";
import User from "./User";

it("renders correctly", () => {
  const { asFragment } = render(<User />);
  const fragmentElement = asFragment().firstChild as HTMLElement;
  const root = getByText(fragmentElement, "User");

  expect(root).not.toBe(null);
  expect(root).toMatchSnapshot();
});
Run Code Online (Sandbox Code Playgroud)

运行时出现jest此错误: …

sass reactjs jestjs css-modules create-react-app

5
推荐指数
1
解决办法
604
查看次数

标签 统计

create-react-app ×1

css-modules ×1

docker ×1

jestjs ×1

linux ×1

reactjs ×1

sass ×1

windows ×1