-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Storyshots with Storybook 4 for React fails with Angular import. #3754
Comments
It will be fixed with #3745 |
The issue seems relatively obvious after starting studying the current code base: This is the code from import loaderReact from './react/loader';
import loaderRn from './rn/loader';
import loaderAngular from './angular/loader';
import loaderVue from './vue/loader';
import loaderHTML from './html/loader';
const loaders = [loaderReact, loaderAngular, loaderRn, loaderVue, loaderHTML];
function loadFramework(options) {
const loader = loaders.find(frameworkLoader => frameworkLoader.test(options));
if (!loader) {
throw new Error('storyshots is intended only to be used with storybook');
}
return loader.load(options);
}
export default loadFramework; Three of these loaders are trying to import
The loader system might need some rework that there is no assumption for frameworks which are not installed or needed. |
This is a bug that happened recently, and after the merging of #3745, it will be fixed. |
@igor-dv may we get a new alpha version with this fix? |
I assume it will be soon |
Any news on the next alpha version? Will it be @storybook/[email protected] ? |
Framework Loaders tries to load Angular stuff in React environment
After updating from 4.0-alpha.4 to -alpha.9 I see the following happens:
This is the not touched
Story.test.js
which is used to execute the test runner:Steps to reproduce
Executing
jest
on the command line.Please specify which version of Storybook and optionally any affected addons that you're running
The text was updated successfully, but these errors were encountered: