将HTML故事书发布到DSM之后,我看到“正在加载...”,但故事书未加载。 DSM预览显示故事书,但在发布时会显示。它继续显示“正在加载”消息
package.json
"scripts": {
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook -c .storybook -o .out",
"deploy-storybook": "storybook-to-ghpages",
"dsm-storybook:publish": "dsm-storybook publish",
"dsm-storybook:preview": "dsm-storybook preview"
},
"dependencies": {
"@invisionapp/dsm-storybook": "latest",
"npm": "^6.13.7"
},
"devDependencies": {
"@babel/core": "^7.8.0",
"@storybook/addon-a11y": "^5.3.9",
"@storybook/addon-actions": "^5.3.9",
"@storybook/addon-backgrounds": "^5.3.9",
"@storybook/addon-centered": "^5.3.9",
"@storybook/addon-docs": "^5.3.9",
"@storybook/addon-knobs": "^5.3.8",
"@storybook/addon-options": "^5.3.9",
"@storybook/addons": "^5.3.9",
"@storybook/html": "^5.3.2",
"@storybook/storybook-deployer": "^2.8.1",
"babel-loader": "^8.0.6",
"babel-runtime": "^6.26.0",
"eslint": "^6.8.0",
"jquery": "3.4.1"
},
注意:将故事书降级为5.2.1版。想了解5.3.9的问题
答案 0 :(得分:0)
它们尚不支持5.3配置文件结构。只需删除main.js文件,然后返回5.3之前的config.js文件即可。