第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Storybook 的遷移

Storybook 的遷移

守候你守候我 2021-10-21 10:53:13
我想將 Storybook 從 遷移5.0.11到5.2.0但在更改版本后package.json我得到:ERROR in ./node_modules/@storybook/theming/dist/utils.jsModule not found: Error: Can't resolve 'core-js/modules/es.array.concat' in '/home/twaszczyk/workspaces/ui-elements/node_modules/@storybook/theming/dist' @ ./node_modules/@storybook/theming/dist/utils.js 9:0-42 @ ./node_modules/@storybook/theming/dist/index.js @ ./config/.storybook/config.js @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./config/.storybook/config.js (webpack)-hot-middleware/client.js?reload=trueERROR in ./node_modules/@storybook/theming/node_modules/@storybook/client-logger/dist/index.jsModule not found: Error: Can't resolve 'core-js/modules/es.array.concat' in '/home/twaszczyk/workspaces/ui-elements/node_modules/@storybook/theming/node_modules/@storybook/client-logger/dist' @ ./node_modules/@storybook/theming/node_modules/@storybook/client-logger/dist/index.js 3:0-42 @ ./node_modules/@storybook/theming/dist/ensure.js @ ./node_modules/@storybook/theming/dist/index.js @ ./config/.storybook/config.js @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./config/.storybook/config.js (webpack)-hot-middleware/client.js?reload=trueERROR in ./node_modules/@storybook/theming/dist/index.jsModule not found: Error: Can't resolve 'core-js/modules/es.array.for-each' in '/home/twaszczyk/workspaces/ui-elements/node_modules/@storybook/theming/dist' @ ./node_modules/@storybook/theming/dist/index.js 3:0-44 @ ./config/.storybook/config.js @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./config/.storybook/config.js (webpack)-hot-middleware/client.js?reload=true我也在遷移指南中尋找,但沒有找到我應(yīng)該做的事情來完成它。
查看完整描述

1 回答

?
蝴蝶不菲

TA貢獻1810條經(jīng)驗 獲得超4個贊

在解決方案下面(希望這有幫助):


{

  "extends": "../../tsconfig.json",

  "compilerOptions": {

    "declarationMap": false

  }

}

遷移依賴項package.json:


"@storybook/addon-actions": "^5.2.0",

"@storybook/addon-centered": "^5.2.0",

"@storybook/addon-info": "^5.2.0",

"@storybook/addon-knobs": "^5.2.0",

"@storybook/addon-storysource": "^5.2.0",

"@storybook/addon-viewport": "^5.2.0",

"@storybook/components": "^5.2.0",

"@storybook/react": "^5.2.0",

"@storybook/source-loader": "^5.2.0",

"@storybook/theming": "^5.2.0",

還需要從 移動babel-loader到ts-loader。


查看完整回答
反對 回復 2021-10-21
  • 1 回答
  • 0 關(guān)注
  • 213 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號