command error when running build:storybook in macOS
Closed this issue ยท 3 comments
Describe the bug
When run yarn build:storybook
in macOS, sed
command show error like below.
sed: eb-build/index.html: No such file or directory
To Reproduce
- Clone repository
- run
yarn build:storybook
command in console - It shows error
Expected behavior
it not showing error, and successfully replace /dooboo-ui
with .
globally.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: macOS BigSur 11.5.2(20G95)
- zsh: zsh 5.8 (x86_64-apple-darwin20.1.0) (with oh-my-zsh)
Additional context
I researched it, i found it sed -i
option is do differently by OS (GNU or macOS)
see stackoverflow answer
so, i changed web-build-postinstall.sh
like below, then it works
sed -i '' -e 's/\/dooboo-ui/./g' web-build/index.html
but, i don't know that command will run at macOS. i think it maybe run on linux based container.. ๐ค
so i'm not sure this issue need to be handled. ๐
Do you still face the error if you follow below? I am also using mac and haven't seen this error.
yarn && yarn pre && yarn build && cd docs && yarn start
@hyochan
oh.. it need more explanation.
that error occurs when run yarn build:storybook
in root project.
Run yarn start
at /docs
is very well done. ๐
I think we can close the issue after we make some better doc ๐