-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook, builerをViteにしてみる #1256
Conversation
✅ Deploy Preview for ingred-ui ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
どっちもcache削除後 結果ローカル
Webpack520sec Vite4.49sec |
#1207 で TypeScript のバージョン上げた影響でコンフリクト起こしてるので解消してもらえるとmm |
f0f1fec
to
80788e5
Compare
おっと 👀
|
あと、挙動については今日定例で他の人にも触ってもらって確認します!(自分と @penicillin0 はマシンスペックが同じなのでローカルでの比較という文脈ではあまり意味がなさそうなので) |
c6c26b7
to
9d01079
Compare
手元で再現した $ yarn storybook
yarn run v1.22.19
$ storybook dev -p 6006
/Users/hoge/git/ingred-ui/node_modules/boxen/index.js:8
const wrapAnsi = require('wrap-ansi');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/hoge/git/ingred-ui/node_modules/wrap-ansi/index.js from /Users/hoge/git/ingred-ui/node_modules/boxen/index.js not supported.
Instead change the require of /Users/hoge/git/ingred-ui/node_modules/wrap-ansi/index.js in /Users/hoge/git/ingred-ui/node_modules/boxen/index.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/Users/hoge/git/ingred-ui/node_modules/boxen/index.js:8:18)
at Object.<anonymous> (/Users/hoge/git/ingred-ui/node_modules/@storybook/core-server/dist/index.js:35:8716)
at Object.<anonymous> (/Users/hoge/git/ingred-ui/node_modules/@storybook/cli/dist/generate.js:1:1255)
at Object.<anonymous> (/Users/hoge/git/ingred-ui/node_modules/@storybook/cli/bin/index.js:9:1)
at Object.<anonymous> (/Users/hoge/git/ingred-ui/node_modules/storybook/index.js:3:1) {
code: 'ERR_REQUIRE_ESM'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
lockfile 更新後、自分の手元だと再現しなかったのでもう1回 master 取り込んで大丈夫そうだったらマージしてもいいかもしれないです |
storybook なので netlify のデプロイだけうまくいけば良さそう |
自分と @penicillin0 以外の人にも試してもらった
|
close #1255
TODO: