-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
FIX 6864 - improve the loading of babel config #6878
Conversation
…hen as JSON, and use whichever works
This pull request is automatically deployed with Now. Latest deployment for this branch: https://monorepo-git-fix-babel-config-loading-js.storybook.now.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We tried both loading as JS & JSON, neither worked. | ||
Maybe there's a syntax error in the file?`); | ||
logger.error(`=> From JS loading we got: ${error.js.message}`); | ||
logger.error(`=> From JSON loading we got: ${error.js.message}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should say error.json.message
, shouldn’t it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch! any chance you can create a small PR to fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I’m afraid not :(
Issue: #6864
What I did
CHANGE load-custom-babel-config file so it will try to load as JS & then as JSON, and use whichever works