You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a bug where the fixes object from running automigration is not an object. It seems to be related to theseearlybails when running automigrations that could happen due to the CLI:
not detecting main.js (user has to run the command again with —config-dir, but it does not make sense when running sb init)
having errors trying to parse the main.js file (maybe something else failed and there is no main.js)
This happens because we always run automigrate as part of init, and it can cause potential issues for users without necessity for that.
We currently run automigrations as part of init because for select packages, typescript (or some babel features) are not supported out of the box:
As part of this task, we should detach automigrate from init, and provide a better solution for the projects listed above to work out of the box, such as running the code from missing-babelrc automigration as part of the init step, only for that select group of frameworks.
The other reason we run automigrations is to provide users the option to install eslint-storybook-plugin automatically, which is really helpful. We should also move this suggestion to the sb init command.
The text was updated successfully, but these errors were encountered:
Error location: automigrate
Suggested work:
This is a bug where the
fixes
object from running automigration is not an object. It seems to be related to these early bails when running automigrations that could happen due to the CLI:This happens because we always run automigrate as part of init, and it can cause potential issues for users without necessity for that.
We currently run automigrations as part of init because for select packages, typescript (or some babel features) are not supported out of the box:
As part of this task, we should detach automigrate from init, and provide a better solution for the projects listed above to work out of the box, such as running the code from
missing-babelrc
automigration as part of the init step, only for that select group of frameworks.The other reason we run automigrations is to provide users the option to install
eslint-storybook-plugin
automatically, which is really helpful. We should also move this suggestion to the sb init command.The text was updated successfully, but these errors were encountered: