質問編集履歴
2
エラー内容を記述
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,8 +2,30 @@
|
|
2
2
|
Nuxt,jsからプロジェクトを作成し、以下を参考にStoryShotsを設定しました。
|
3
3
|
https://github.com/storybookjs/storybook/tree/next/addons/storyshots/storyshots-core
|
4
4
|
しかし、npm test を実行したら、以下のようなエラーが出てきてしまいます。
|
5
|
-

|
6
5
|
|
6
|
+
```ここに言語を入力
|
7
|
+
FAIL ./Storyshots.test.js
|
8
|
+
● Test suite failed to run
|
9
|
+
|
10
|
+
C:…\node_modules\storybook-addon-vue-info\lib\index.js:25
|
11
|
+
import Vue from 'vue';
|
12
|
+
^^^
|
13
|
+
|
14
|
+
SyntaxError: Unexpected identifier
|
15
|
+
|
16
|
+
4 | import { action } from "@storybook/addon-actions";
|
17
|
+
5 | import { addDecorator, configure } from "@storybook/vue";
|
18
|
+
> 6 | import { withInfo } from "storybook-addon-vue-info";
|
19
|
+
| ^
|
20
|
+
7 | import { withNotes } from "@storybook/addon-notes";
|
21
|
+
8 | import requireContext from 'require-context.macro';
|
22
|
+
9 |
|
23
|
+
|
24
|
+
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:471:17)
|
25
|
+
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:513:25)
|
26
|
+
at Object.<anonymous> (.storybook/config.js:6:1)
|
27
|
+
```
|
28
|
+
|
7
29
|
storybook-addon-vue-infoをimportしたことが原因のようですが、正直、対応方法がわからないので、どなたか教えてください。
|
8
30
|
|
9
31
|
### 該当のソースコード
|
1
誤字の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
しかし、npm test を実行したら、以下のようなエラーが出てきてしまいます。
|
5
5
|

|
6
6
|
|
7
|
-
storybook-addon-vue-infoをimportしたことが原因のようですが、正直、対応方法がわからないので、どなたか教えてくだい。
|
7
|
+
storybook-addon-vue-infoをimportしたことが原因のようですが、正直、対応方法がわからないので、どなたか教えてください。
|
8
8
|
|
9
9
|
### 該当のソースコード
|
10
10
|
githubに(プロジェクトを)公開してみたので、お手数ですが、ご確認をお願いします。
|