teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

記載ミス

2020/07/13 09:46

投稿

aiai8976
aiai8976

スコア112

title CHANGED
File without changes
body CHANGED
@@ -9,4 +9,16 @@
9
9
 
10
10
  ```
11
11
  TypeError: Cannot use 'in' operator to search for 'green' in undefined
12
+ ```
13
+
14
+ ```
15
+ useVariantColorWarning
16
+ node_modules/@chakra-ui/core/dist/es/utils/index.js:113
17
+ 110 | var variantColorIsDefined = variantColor != null;
18
+ 111 |
19
+ 112 | if (variantColorIsDefined) {
20
+ > 113 | var variantColorExists = variantColor in theme.colors; // If variant color exists in theme object
21
+ | ^ 114 |
22
+ 115 | if (!variantColorExists) {
23
+ 116 | console.warn("You passed an invalid variantColor to the " + label + " Component. Variant color values must be a color key in the theme object that has '100' - '900' color values. Check http://chakra-ui.com/theme#colors to see possible values");
12
24
  ```

1

質問の解答

2020/07/13 09:46

投稿

aiai8976
aiai8976

スコア112

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,6 @@
1
1
  ### 前提・実現したいこと
2
2
  Reactのcssフレームワークであるchakraを使おうと思っています。
3
- しかし、npm install後すぐに以下のエラーが発生しました。
3
+ しかし、npm install後すぐにbuttonコンポーネントを描画しようとしたら以下のエラーが発生しました。
4
4
  これはバグでしょうか?
5
5
 
6
6
  参考