Ideas ?:)

Try sb migrate storiesof-to-csf --glob="**/*.stories.js" with the =?
@shilman Same issue ;(
Do you have 55 .stories.js files in your project? I think it's sending other files that it shouldn't be sending? What if you point it at src/**/*.stories.js or something like that?
Yes, this is the correct figure.
I tried it in a different system and it worked.
Perhaps an rm -rf node_modules && yarn would solve it.
Thank you.
Pretty strange. Glad you figured it out! 馃憤
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
Not working for me. No stories show up whatsoever.
yarn.lock and deleted node_modulesstoriesOf makes them reappearI can verify that all stories ARE being loaded through
function loadStories() {
req.keys().forEach(filename => {
console.log(filename);
return req(filename)
});
}
@jayliu50 please read the "loading stories" documentation:
Your loadStories function needs to return a value if you want to use CSF.
@shilman thanks for the reply, and for pointing me in the right direction.
I changed from before to after, and it works now.
Thank you!!
BEFORE
import React, { Fragment } from 'react';
import { configure, addDecorator } from '@storybook/react';
import GlobalStyle from '../src/styles/global';
// automatically import all files ending in *.stories.js
const req = require.context('../src', true, /\.stories\.js$/);
function loadStories() {
req.keys().forEach(filename => req(filename));
}
addDecorator(storyFn => (
<Fragment>
{storyFn()}
<GlobalStyle></GlobalStyle>
</Fragment>
));
configure(loadStories, module);
AFTER
import React, { Fragment } from 'react';
import { configure, addDecorator } from '@storybook/react';
import GlobalStyle from '../src/styles/global';
// automatically import all files ending in *.stories.js
configure([require.context('../src', true, /\.stories\.js$/)], module);
addDecorator(storyFn => (
<Fragment>
{storyFn()}
<GlobalStyle></GlobalStyle>
</Fragment>
));
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
The way to _fix_ this is to move babel.config.js so that it's not used when migrating.
When done, you can put it back / rename it.
Most helpful comment
The way to _fix_ this is to move
babel.config.jsso that it's not used when migrating.When done, you can put it back / rename it.