Skip to content

Conversation

@gaetanmaisse
Copy link
Member

What I did

I added all the missing dependencies listed by Yarn 2 E2E tests.

How to test

  • Ci should be 🟢

@gaetanmaisse gaetanmaisse added the maintenance User-facing maintenance tasks label Feb 21, 2021
@gaetanmaisse gaetanmaisse marked this pull request as ready for review February 21, 2021 20:18
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for cleaning this up. How did you figure out the list of changes?

"@mdx-js/react": "^1.6.22",
"@storybook/addons": "6.2.0-alpha.32",
"@storybook/api": "6.2.0-alpha.32",
"@storybook/builder-webpack4": "^6.2.0-alpha.32",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaetanmaisse Why do we need this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of this line:

paths: [require.resolve('@storybook/builder-webpack4')], // FIXME!!!

"@babel/preset-react": "^7.12.10",
"@storybook/addons": "6.2.0-alpha.32",
"@storybook/builder-webpack4": "6.2.0-alpha.32",
"@storybook/core-client": "6.2.0-alpha.32",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it's used as a default value in

const { managerEntry = '@storybook/core-client/dist/esm/manager' } = options;

@gaetanmaisse
Copy link
Member Author

How did you figure out the list of changes?

I ran the PnP E2E test locally:

yarn bootstrap --core
yarn local-registry --port 6000 --open --publish

# In another terminal 
yarn test:e2e-framework --use-yarn-2-pnp --use-local-sb-cli cra

# To simplify the debug I also linked the SB packages to the monorepo to avoid to republish each time a change is made
# from the monorepo
cd ../storybook-e2e-testing/cra-latest
yarn link ../../storybook --all

And then I fixed the Required package xxxx errors until I faced a CRA one 🙈

@shilman shilman changed the title Misc: Add missing dependencies related to Webpack 4/5 work Yarn PnP: Add missing dependencies related to Webpack 4/5 work Feb 22, 2021
@shilman shilman changed the title Yarn PnP: Add missing dependencies related to Webpack 4/5 work Yarn PnP: Add missing dependencies for Webpack 4/5 work Feb 22, 2021
@shilman shilman merged commit d9713b6 into next Feb 22, 2021
@shilman shilman deleted the tech/fix-yarn-pnp-e2e-tests branch February 22, 2021 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance User-facing maintenance tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants