我正在尝试将故事书与Invision DSM集成。我正在使用他们的样本库对其进行测试。但是,当我尝试预览或发布时,出现了缺少的脚本错误。这是我的带有脚本的package.json文件
"name": "react-sample-v5",
"version": "0.0.1",
"private": true,
"dependencies": {
"@invisionapp/dsm-storybook": "latest",
"@storybook/addon-a11y": "5.2.0",
"@storybook/addon-actions": "5.2.0",
"@storybook/addon-backgrounds": "5.2.0",
"@storybook/addon-centered": "5.2.0",
"@storybook/addon-docs": "5.2.0",
"@storybook/addon-knobs": "5.2.0",
"@storybook/addon-options": "5.2.0",
"@storybook/addons": "5.2.0",
"@storybook/react": "5.2.0",
"acorn": "^6.1.1",
"core-js": "^2.6.5",
"prop-types": "15.6.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.0",
"react-svg-inline": "2.1.1"
},
"scripts": {
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"dsm-storybook:publish": "dsm-storybook publish",
"dsm-storybook:preview": "dsm-storybook preview"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"devDependencies": {
"@babel/core": "^7.2.0",
"babel-loader": "^8.0.4",
"css-loader": "^2.1.1",
"node-sass": "^4.12.0",
"precss": "^4.0.0",
"raw-loader": "1.0.0",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1"
}
}