LoginSignup
1
1

More than 5 years have passed since last update.

Riot.js と Storybook (IE11で動作しなかったので、挫折&頓挫)

Last updated at Posted at 2019-01-09

write: 2019.1.9

Storybook for Riotを試していたが、
IE11で動作しなかったので、挫折&頓挫

riot.compiler.jsにて以下の個所がエラーになってしまう。

node_modules/riot-compiler/dist/riot.compiler.js
var S_R_SRC2 = `${S_R_SRC1.slice(0, -2)}{}])`

IEなんて早く無くなればいいのに

最初の1歩

Add @storybook/riot をやる前に、Riotが動作するWebpack環境を作っておく

手っ取り早く動作する、riot/examplesexamples/webpack を使用する。

npm install
npm start

Storybookを入れる

npx -p @storybook/cli sb init

Storybook実行

yarn storybook

以下のような画面が出ればOK。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1