Closed tschanz-pcv closed 3 years ago
Can you enable additional logging for the storybook command? This currently doesn't tell us why it exited with exit code 1.
Ok, so I think I fixed it.
I think my initial hunch that it's a memory issue was correct. I did check memory usage and tried tweaking it with the runArgs
but of course this doesn't help at all if Docker Desktop has his own internal limits that can't be exceeded! If only I would have known...
So I'm sorry for wasting your time; the solution was just to crank up the memory on the "Resources" section of Docker Desktop. Then the runArgs actually scaled the available memory up to 4g. Before it always ran the container with a 2GB limit which was not enough.
npm Log:
Steps to Reproduce:
mcr.microsoft.com/vscode/devcontainers/typescript-node:0-14
containerstart-storybook -p 6006 -s public
I'm sorry if this is not the right place to post this. I'm not sure if the issue is directly with storybook, Docker, my device, npm or devcontainers.
This only happens when I run it in the devcontainer. When I re-install node_modules on my host and run it, it works fine. I suspected memory issues but couldn't see anything of the sorts in the npm error nor anything suspicious when I monitored the containers memory usage.
(If it matters, I've posted most of my storybook config in another issue here: https://github.com/storybookjs/storybook/issues/14798)
Does this issue occur when you try this locally?: Only when run in container, does not happen when run directly on host Does this issue occur when you try this locally and all extensions are disabled?: -
Dockerfile:
devcontainer.json: