Skip to content
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

Build: Fix CRA repro generator and e2e test in PnP mode #17375

Merged
merged 32 commits into from
Feb 18, 2022
Merged

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Jan 31, 2022

One of the CI tasks keeps failing.

Part of the issue was related to CRA:

And some other things to Vue 3:

TL;DR: Vue 3 is now the new default version as of Monday, February 7, 2022!
https://blog.vuejs.org/posts/vue-3-as-the-new-default.html


notes:

This issue suggest clearing npm cache:
facebook/create-react-app#6776

Here's another seemingly related issue:
facebook/create-react-app#1735

@nx-cloud
Copy link

nx-cloud bot commented Jan 31, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 4abf608. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@ndelangen ndelangen self-assigned this Jan 31, 2022
@ndelangen ndelangen added the maintenance User-facing maintenance tasks label Jan 31, 2022
@ndelangen ndelangen changed the title FIx e2e FIX e2e Jan 31, 2022
@ndelangen
Copy link
Member Author

Locally I'm getting this:

🏃 Running cra into /Users/me/Projects/Storybook/storybook-e2e-testing/cra

🏃 Starting for cra latest

{
  name: 'cra',
  version: 'latest',
  appName: 'cra',
  creationPath: '/Users/me/Projects/Storybook/storybook-e2e-testing',
  cwd: '/Users/me/Projects/Storybook/storybook-e2e-testing/cra',
  e2e: true,
  pnp: true,
  framework: 'react',
  generator: 'npx create-react-app@{{version}} {{appName}} --use-npm && cd {{appName}} && echo "FAST_REFRESH=true" > .env && echo "SKIP_PREFLIGHT_CHECK=true" > .env'
}

🏗 Bootstrapping cra project (this might take a few minutes)
npx create-react-app@latest cra --use-npm && cd cra && echo "FAST_REFRESH=true" > .env && echo "SKIP_PREFLIGHT_CHECK=true" > .env
An error occurred while executing: `npx create-react-app@latest cra --use-npm && cd cra && echo "FAST_REFRESH=true" > .env && echo "SKIP_PREFLIGHT_CHECK=true" > .env`
Command output was:

sh: create-react-app@latest: command not found

Which is different form the CI.
It would seem the CI is possible running out of resources, based on issues & discussions in the CRA repo.

@ndelangen
Copy link
Member Author

Seems like the failure happens before it's installed?! And then the install is halted half way in?

Screenshot 2022-01-31 at 18 03 28

@ndelangen
Copy link
Member Author

@shilman review away

@ndelangen
Copy link
Member Author

oof:

👷 Building Storybook
yarn build-storybook --quiet
info @storybook/react v6.5.0-alpha.30
info 
info => Cleaning outputDir: /tmp/storybook-e2e-testing/cra/storybook-static
(node:927) DeprecationWarning: --static-dir CLI flag is deprecated, see:

https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated---static-dir-cli-flag
(Use `node --trace-deprecation ...` to show where the warning was created)
info => Loading presets
info => Copying static files: ./public => ./
ERR! Error: @storybook/core-server tried to access @storybook/manager-webpack5 (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.
ERR! 
ERR! Required package: @storybook/manager-webpack5 (via "@storybook/manager-webpack5/prebuilt-manager")
ERR! Required by: @storybook/core-server@virtual:59f05611faa53a966db6158383aad41196d552ccb3146e01020caaa0190b0f10f15edd2bd44449d4b342f2ce9b82f58dd058b81b815efa94943107d0918ecf00#npm:6.5.0-alpha.30 (via /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/)
ERR! 
ERR! Ancestor breaking the chain: @storybook/core@virtual:0c9ab7d7eb0ce0b8929190e024d87075edc0ad1269452bff30850b516430673e7d14d17fd9cf0313acd718ba151b177b7c77ebea1525fe8753ecd5be137cd364#npm:6.5.0-alpha.30
ERR! 
ERR! 
ERR! Require stack:
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/build-static.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/index.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-virtual-59f05611fa/4/root/.yarn/berry/cache/@storybook-core-npm-6.5.0-alpha.30-762ee8d659-8.zip/node_modules/@storybook/core/dist/cjs/server.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-virtual-59f05611fa/4/root/.yarn/berry/cache/@storybook-core-npm-6.5.0-alpha.30-762ee8d659-8.zip/node_modules/@storybook/core/server.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-react-virtual-0e7c5eb19e/4/root/.yarn/berry/cache/@storybook-react-npm-6.5.0-alpha.30-aff00ce9ec-8.zip/node_modules/@storybook/react/dist/cjs/server/build.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-react-virtual-0e7c5eb19e/4/root/.yarn/berry/cache/@storybook-react-npm-6.5.0-alpha.30-aff00ce9ec-8.zip/node_modules/@storybook/react/bin/build.js
ERR!     at Function.external_module_.Module._resolveFilename (/tmp/storybook-e2e-testing/cra/.pnp.cjs:35615:55)
ERR!     at Function.external_module_.Module._load (/tmp/storybook-e2e-testing/cra/.pnp.cjs:35414:48)
ERR!     at Module.require (internal/modules/cjs/loader.js:957:19)
ERR!     at require (internal/modules/cjs/helpers.js:88:18)
ERR!     at /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/build-static.js:151:36
ERR!     at async buildStaticStandalone (/tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/build-static.js:150:43)
ERR!     at async buildStatic (/tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/build-static.js:197:5)
ERR!  Error: @storybook/core-server tried to access @storybook/manager-webpack5 (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.
ERR! 
ERR! Required package: @storybook/manager-webpack5 (via "@storybook/manager-webpack5/prebuilt-manager")
ERR! Required by: @storybook/core-server@virtual:59f05611faa53a966db6158383aad41196d552ccb3146e01020caaa0190b0f10f15edd2bd44449d4b342f2ce9b82f58dd058b81b815efa94943107d0918ecf00#npm:6.5.0-alpha.30 (via /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/)
ERR! 
ERR! Ancestor breaking the chain: @storybook/core@virtual:0c9ab7d7eb0ce0b8929190e024d87075edc0ad1269452bff30850b516430673e7d14d17fd9cf0313acd718ba151b177b7c77ebea1525fe8753ecd5be137cd364#npm:6.5.0-alpha.30
ERR! 
ERR! 
ERR! Require stack:
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/build-static.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/index.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-virtual-59f05611fa/4/root/.yarn/berry/cache/@storybook-core-npm-6.5.0-alpha.30-762ee8d659-8.zip/node_modules/@storybook/core/dist/cjs/server.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-virtual-59f05611fa/4/root/.yarn/berry/cache/@storybook-core-npm-6.5.0-alpha.30-762ee8d659-8.zip/node_modules/@storybook/core/server.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-react-virtual-0e7c5eb19e/4/root/.yarn/berry/cache/@storybook-react-npm-6.5.0-alpha.30-aff00ce9ec-8.zip/node_modules/@storybook/react/dist/cjs/server/build.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-react-virtual-0e7c5eb19e/4/root/.yarn/berry/cache/@storybook-react-npm-6.5.0-alpha.30-aff00ce9ec-8.zip/node_modules/@storybook/react/bin/build.js
ERR!     at Function.external_module_.Module._resolveFilename (/tmp/storybook-e2e-testing/cra/.pnp.cjs:35615:55)
ERR!     at Function.external_module_.Module._load (/tmp/storybook-e2e-testing/cra/.pnp.cjs:35414:48)
ERR!     at Module.require (internal/modules/cjs/loader.js:957:19)
ERR!     at require (internal/modules/cjs/helpers.js:88:18)
ERR!     at /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/build-static.js:151:36
ERR!     at async buildStaticStandalone (/tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/build-static.js:150:43)
ERR!     at async buildStatic (/tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-09bc09ac95/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.30-02f81ce247-8.zip/node_modules/@storybook/core-server/dist/cjs/build-static.js:197:5)
An error occurred while executing: `yarn build-storybook --quiet`

@ndelangen
Copy link
Member Author

When I ran it locally, @storybook/manager-webpack5 IS actually present in the package.json...

@ndelangen
Copy link
Member Author

Ancestor breaking the chain: @storybook/core

And this in storybook/core:

  "peerDependencies": {
    "@storybook/builder-webpack5": "6.5.0-alpha.30",
    "react": "^16.8.0 || ^17.0.0",
    "react-dom": "^16.8.0 || ^17.0.0",
    "webpack": "*"
  },
  "peerDependenciesMeta": {
    "@storybook/builder-webpack5": {
      "optional": true
    },
    "typescript": {
      "optional": true
    }
  },

@shilman does core really need webpack5 as a dependency?!?

@shilman
Copy link
Member

shilman commented Feb 1, 2022

Probably technically yes but I couldn't tell you why from memory (and am afk right now). Maybe @merceyz remembers.

@@ -87,7 +87,7 @@ export async function baseGenerator(
const addonPackages = [...addons, '@storybook/addon-actions'];

const yarn2Dependencies =
packageManager.type === 'yarn2' ? ['@storybook/addon-docs', '@mdx-js/react'] : [];
packageManager.type === 'yarn2' ? ['@storybook/addon-docs', '@mdx-js/react@1.x.x'] : [];
Copy link
Member Author

Choose a reason for hiding this comment

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

@shilman version lock it to v1

@ndelangen
Copy link
Member Author

Screenshot 2022-02-01 at 19 44 09

@ndelangen ndelangen marked this pull request as ready for review February 1, 2022 19:16
@ndelangen
Copy link
Member Author

reminder to remove the saving of artifacts (or ZIP them first)

@ndelangen
Copy link
Member Author

@gaetanmaisse this line might be a problem:

export const nodeModulesPaths = path.resolve('./node_modules');

though it seems this code isn't used at all!

and this one:

const nodeModulesThatNeedToBeParsedBecauseTheyExposeES6 = [
'@storybook[\\\\/]expect',
'@storybook[\\\\/]node_logger',
'@testing-library[\\\\/]dom',
'@testing-library[\\\\/]user-event',
'acorn-jsx',
'ansi-align',
'ansi-colors',
'ansi-escapes',
'ansi-regex',
'ansi-styles',
'better-opn',
'boxen',
'chalk',
'color-convert',
'commander',
'find-cache-dir',
'find-up',
'fs-extra',
'highlight.js',
'jest-mock',
'json5',
'node-fetch',
'pkg-dir',
'prettier',
'pretty-format',
'react-router',
'react-router-dom',
'resolve-from',
'semver',
'slash',
'strip-ansi',
].map((n) => new RegExp(`[\\\\/]node_modules[\\\\/]${n}`));

What does something like this to a --pnp enabled repo?:

modules: ['node_modules'].concat(envs.NODE_PATH || []),

From the tests I did locally, adding both these deps is fixing Storybook in a CRA app with Yarn PnP.
@gaetanmaisse
Copy link
Member

@ndelangen with the last commit I pushed it unblocks webpack build, I'm not sure to understand why tho'...
Then we are facing a classic dependency not declared issue, but it's on CRA side:

ERR! Module build failed (from ./.yarn/__virtual__/babel-loader-virtual-53dbd4e05d/4/root/.yarn/berry/cache/babel-loader-npm-8.2.3-855681b984-8.zip/node_modules/babel-loader/lib/index.js):
ERR! Error: [BABEL] /tmp/storybook-e2e-testing/cra/src/stories/Button.stories.jsx: babel-preset-react-app tried to access @babel/plugin-proposal-private-property-in-object, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
ERR! 
ERR! Required package: @babel/plugin-proposal-private-property-in-object
ERR! Required by: babel-preset-react-app@npm:10.0.1 (via /root/.yarn/berry/cache/babel-preset-react-app-npm-10.0.1-a9a19b630a-8.zip/node_modules/babel-preset-react-app/)
ERR! 
ERR! Require stack:
ERR! - /root/.yarn/berry/cache/babel-preset-react-app-npm-10.0.1-a9a19b630a-8.zip/node_modules/babel-preset-react-app/create.js
ERR! - /root/.yarn/berry/cache/babel-preset-react-app-npm-10.0.1-a9a19b630a-8.zip/node_modules/babel-preset-react-app/index.js
ERR! - /root/.yarn/berry/cache/@babel-core-npm-7.17.2-bc12e43b41-8.zip/node_modules/@babel/core/lib/config/files/module-types.js
ERR! - /root/.yarn/berry/cache/@babel-core-npm-7.17.2-bc12e43b41-8.zip/node_modules/@babel/core/lib/config/files/configuration.js
ERR! - /root/.yarn/berry/cache/@babel-core-npm-7.17.2-bc12e43b41-8.zip/node_modules/@babel/core/lib/config/files/index.js
ERR! - /root/.yarn/berry/cache/@babel-core-npm-7.17.2-bc12e43b41-8.zip/node_modules/@babel/core/lib/index.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@rollup-plugin-babel-virtual-a4dbb1aebf/4/root/.yarn/berry/cache/@rollup-plugin-babel-npm-5.3.0-944843ffd9-8.zip/node_modules/@rollup/plugin-babel/dist/index.js
ERR! - /root/.yarn/berry/cache/workbox-build-npm-6.4.2-83cd657f6a-8.zip/node_modules/workbox-build/build/lib/bundle.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/workbox-webpack-plugin-virtual-8ad76104b5/4/root/.yarn/berry/cache/workbox-webpack-plugin-npm-6.4.2-249a27d315-8.zip/node_modules/workbox-webpack-plugin/build/generate-sw.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/workbox-webpack-plugin-virtual-8ad76104b5/4/root/.yarn/berry/cache/workbox-webpack-plugin-npm-6.4.2-249a27d315-8.zip/node_modules/workbox-webpack-plugin/build/index.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/react-scripts-virtual-4edbc0c6ff/4/root/.yarn/berry/cache/react-scripts-npm-5.0.0-14ea4c40dd-8.zip/node_modules/react-scripts/config/webpack.config.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-preset-create-react-app-virtual-5ea6eeeb69/4/root/.yarn/berry/cache/@storybook-preset-create-react-app-npm-4.0.1-a0a290772c-8.zip/node_modules/@storybook/preset-create-react-app/dist/index.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-common-virtual-87a23aa106/4/root/.yarn/berry/cache/@storybook-core-common-npm-6.5.0-alpha.39-70fc45a81e-8.zip/node_modules/@storybook/core-common/dist/cjs/presets.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-common-virtual-87a23aa106/4/root/.yarn/berry/cache/@storybook-core-common-npm-6.5.0-alpha.39-70fc45a81e-8.zip/node_modules/@storybook/core-common/dist/cjs/index.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-server-virtual-8678751edd/4/root/.yarn/berry/cache/@storybook-core-server-npm-6.5.0-alpha.39-7ed1ca228d-8.zip/node_modules/@storybook/core-server/dist/cjs/index.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-virtual-eb80802c10/4/root/.yarn/berry/cache/@storybook-core-npm-6.5.0-alpha.39-fe23192354-8.zip/node_modules/@storybook/core/dist/cjs/server.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-core-virtual-eb80802c10/4/root/.yarn/berry/cache/@storybook-core-npm-6.5.0-alpha.39-fe23192354-8.zip/node_modules/@storybook/core/server.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-react-virtual-9b12b5bc45/4/root/.yarn/berry/cache/@storybook-react-npm-6.5.0-alpha.39-48dab45a83-8.zip/node_modules/@storybook/react/dist/cjs/server/build.js
ERR! - /tmp/storybook-e2e-testing/cra/.yarn/__virtual__/@storybook-react-virtual-9b12b5bc45/4/root/.yarn/berry/cache/@storybook-react-npm-6.5.0-alpha.39-48dab45a83-8.zip/node_modules/@storybook/react/bin/build.js (While processing: "/root/.yarn/berry/cache/babel-preset-react-app-npm-10.0.1-a9a19b630a-8.zip/node_modules/babel-preset-react-app/index.js")
ERR!     at Function.external_module_.Module._resolveFilename (/tmp/storybook-e2e-testing/cra/.pnp.cjs:35068:55)

As a workaround to see what's the status without this issue, I copied the project locally and added the following in the .yarnrc.yml:

packageExtensions:
  babel-preset-react-app@*:
    dependencies:
      "@babel/plugin-proposal-private-property-in-object": "*"

(I also linked all the Storybook packages to have all the fixed done in this PR: yarn link --all [LINK_TO_YOUR_CLONE_OF_THE_MONOREPO]).

I would be glad to discuss this with you to define our next move!

@ndelangen
Copy link
Member Author

@gaetanmaisse that sounds like CRA itself has a problem with pnp then?

@merceyz
Copy link
Contributor

merceyz commented Feb 14, 2022

@gaetanmaisse I've fixed that issue in facebook/create-react-app#11751 but it hasn't been merged yet. The fix is included in the canary releases of Yarn though if you want to use that.
https://github.com/yarnpkg/berry/blob/3cfb8bd988426e1bd062a085e8512c4c12323846/packages/plugin-compat/sources/extensions.ts#L740-L745

that sounds like CRA itself has a problem with pnp then?

It's an undeclared dependency which is a problem in general, not just with PnP.

@ndelangen
Copy link
Member Author

@shilman @gaetanmaisse merge and wait for CRA to fix upstream?

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.

Generally looks great! Some questions for discussion below

lib/cli/src/repro-generators/scripts.ts Outdated Show resolved Hide resolved
@@ -45,6 +45,7 @@
},
"peerDependencies": {
"@storybook/builder-webpack5": "6.5.0-alpha.39",
"@storybook/manager-webpack5": "6.5.0-alpha.39",
Copy link
Member

Choose a reason for hiding this comment

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

Can we do this for all optional peer dependencies? If so, I think that could be an improvement

@@ -86,6 +86,18 @@
"@babel/core": {
"optional": true
},
"@storybook/builder-webpack4": {
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 to add these?

Copy link
Member

Choose a reason for hiding this comment

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

Because there is @storybook/core as dep and it has @storybook/builder-webpack4 as optional peer dep itself, so we need to add it to satisfy transitivity. Maël did a post about it some time ago: https://dev.to/arcanis/implicit-transitive-peer-dependencies-ed0

"peerDependenciesMeta": {
"@storybook/angular": {
"optional": true
},
"@storybook/builder-webpack4": {
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 to add these?

Copy link
Member

Choose a reason for hiding this comment

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

@gaetanmaisse
Copy link
Member

@ndelangen I will review the comments and do the needed changes later today ;)

As of CRA 5 `--use-npm` option has been removed.
To force usage of NPM the only hacky way I found is to override `npm_config_user_agent` env var.

See related PR: facebook/create-react-app#11322
And changelog: https://github.com/facebook/create-react-app/releases/tag/v5.0.0
We will need to discuss the `import/no-extraneous-dependencies` rule config
@gaetanmaisse gaetanmaisse changed the title FIX e2e Build: Fix CRA repro generator and e2e test in PnP mode Feb 17, 2022
> TL;DR: Vue 3 is now the new default version as of Monday, February 7, 2022!
> https://blog.vuejs.org/posts/vue-3-as-the-new-default.html
@gaetanmaisse
Copy link
Member

Soooo, after the issues with CRA I had to deal with Vue and

TL;DR: Vue 3 is now the new default version as of Monday, February 7, 2022!
https://blog.vuejs.org/posts/vue-3-as-the-new-default.html

I updated the repro to use fixed versions of Vue related packages but there is maybe more to do on @storybook/vue /@storybook/vue3 side.

Everything 🟢 on CircleCI side! 🎆 Good to merge @shilman @ndelangen ?

@ndelangen ndelangen merged commit 8940c2a into next Feb 18, 2022
@ndelangen ndelangen deleted the fix/e2e-cra branch February 18, 2022 11:19
@shilman shilman added patch:yes Bugfix & documentation PR that need to be picked to main branch and removed patch:yes Bugfix & documentation PR that need to be picked to main branch labels Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks yarn / npm Yarn / npm acting weird
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants