storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.62k stars 9.31k forks source link

Error: You gave us a visitor for the node type StaticBlock but it's not a valid type #12893

Closed md-seb closed 3 years ago

md-seb commented 4 years ago

Cannot run storybook in a vanilla create-react-app. It appears to install correctly, but fails on npm run storybook

To Reproduce

  1. run cd /tmp && npx create-react-app storytest && cd storytest && npx sb init && npm run storybook
  2. This errors with
    ERROR in ./.storybook/generated-refs.js
    Module build failed (from ./node_modules/babel-loader/lib/index.js):
    Error: You gave us a visitor for the node type StaticBlock but it's not a valid type

Expected behavior Storybook is running

Code snippets Full log:

% cd /tmp && npx create-react-app storytest && cd storytest && npx sb init && npm run storybook

Creating a new React app in /private/tmp/storytest.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

yarn add v1.22.5
[1/4] πŸ”  Resolving packages...
warning react-scripts > workbox-webpack-plugin > workbox-build > rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi@15.1.1: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411)
warning react-scripts > jest-circus > jest-runner > jest-config > jest-environment-jsdom > jsdom > request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning react-scripts > jest-circus > jest-runner > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] πŸ”¨  Building fresh packages...
[1/5] β „ fsevents
[-/5] β „ waiting...
[-/5] β „ waiting...
[-/5] β „ waiting...
warning Error running install script for optional dependency: "/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /private/tmp/storytest/node_modules/chokidar/node_modules/fsevents
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.0
gyp info using node@10.22.0 | darwin | x64
gyp info find Python using Python version 3.8.5 found at \"/usr/local/opt/python@3.8/bin/python3.8\"
gyp info spawn /usr/local/opt/python@3.8/bin/python3.8
gyp info spawn args [ '/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/seb/Library/Caches/node-gyp/10.22.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/seb/Library/Caches/node-gyp/10.22.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/seb/Library/Caches/node-gyp/10.22.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command \"/Users/seb/.nvm/versions/node/v10.22.0/bin/node\" \"/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /private/tmp/storytest/node_modules/chokidar/node_modules/fsevents
success Saved lockfile.
success Saved 340 new dependencies.
info Direct dependencies
β”œβ”€ cra-template@1.1.0
β”œβ”€ react-dom@17.0.1
β”œβ”€ react-scripts@4.0.0
└─ react@17.0.1
info All dependencies
β”œβ”€ @babel/helper-builder-binary-assignment-operator-visitor@7.10.4
β”œβ”€ @babel/helper-builder-react-jsx@7.10.4
β”œβ”€ @babel/helper-compilation-targets@7.12.1
β”œβ”€ @babel/helper-define-map@7.10.5
β”œβ”€ @babel/helper-explode-assignable-expression@7.12.1
β”œβ”€ @babel/helper-get-function-arity@7.10.4
β”œβ”€ @babel/helper-hoist-variables@7.10.4
β”œβ”€ @babel/helper-module-imports@7.12.1
β”œβ”€ @babel/helper-wrap-function@7.12.3
β”œβ”€ @babel/helpers@7.12.1
β”œβ”€ @babel/plugin-proposal-async-generator-functions@7.12.1
β”œβ”€ @babel/plugin-proposal-class-properties@7.12.1
β”œβ”€ @babel/plugin-proposal-decorators@7.12.1
β”œβ”€ @babel/plugin-proposal-dynamic-import@7.12.1
β”œβ”€ @babel/plugin-proposal-export-namespace-from@7.12.1
β”œβ”€ @babel/plugin-proposal-json-strings@7.12.1
β”œβ”€ @babel/plugin-proposal-logical-assignment-operators@7.12.1
β”œβ”€ @babel/plugin-proposal-nullish-coalescing-operator@7.12.1
β”œβ”€ @babel/plugin-proposal-numeric-separator@7.12.1
β”œβ”€ @babel/plugin-proposal-object-rest-spread@7.12.1
β”œβ”€ @babel/plugin-proposal-optional-catch-binding@7.12.1
β”œβ”€ @babel/plugin-proposal-optional-chaining@7.12.1
β”œβ”€ @babel/plugin-proposal-private-methods@7.12.1
β”œβ”€ @babel/plugin-proposal-unicode-property-regex@7.12.1
β”œβ”€ @babel/plugin-syntax-bigint@7.8.3
β”œβ”€ @babel/plugin-syntax-class-properties@7.12.1
β”œβ”€ @babel/plugin-syntax-decorators@7.12.1
β”œβ”€ @babel/plugin-syntax-flow@7.12.1
β”œβ”€ @babel/plugin-syntax-import-meta@7.10.4
β”œβ”€ @babel/plugin-syntax-top-level-await@7.12.1
β”œβ”€ @babel/plugin-syntax-typescript@7.12.1
β”œβ”€ @babel/plugin-transform-arrow-functions@7.12.1
β”œβ”€ @babel/plugin-transform-async-to-generator@7.12.1
β”œβ”€ @babel/plugin-transform-block-scoped-functions@7.12.1
β”œβ”€ @babel/plugin-transform-block-scoping@7.12.1
β”œβ”€ @babel/plugin-transform-classes@7.12.1
β”œβ”€ @babel/plugin-transform-computed-properties@7.12.1
β”œβ”€ @babel/plugin-transform-destructuring@7.12.1
β”œβ”€ @babel/plugin-transform-dotall-regex@7.12.1
β”œβ”€ @babel/plugin-transform-duplicate-keys@7.12.1
β”œβ”€ @babel/plugin-transform-exponentiation-operator@7.12.1
β”œβ”€ @babel/plugin-transform-flow-strip-types@7.12.1
β”œβ”€ @babel/plugin-transform-for-of@7.12.1
β”œβ”€ @babel/plugin-transform-function-name@7.12.1
β”œβ”€ @babel/plugin-transform-literals@7.12.1
β”œβ”€ @babel/plugin-transform-member-expression-literals@7.12.1
β”œβ”€ @babel/plugin-transform-modules-amd@7.12.1
β”œβ”€ @babel/plugin-transform-modules-commonjs@7.12.1
β”œβ”€ @babel/plugin-transform-modules-systemjs@7.12.1
β”œβ”€ @babel/plugin-transform-modules-umd@7.12.1
β”œβ”€ @babel/plugin-transform-named-capturing-groups-regex@7.12.1
β”œβ”€ @babel/plugin-transform-new-target@7.12.1
β”œβ”€ @babel/plugin-transform-object-super@7.12.1
β”œβ”€ @babel/plugin-transform-property-literals@7.12.1
β”œβ”€ @babel/plugin-transform-react-constant-elements@7.12.1
β”œβ”€ @babel/plugin-transform-react-display-name@7.12.1
β”œβ”€ @babel/plugin-transform-react-jsx-development@7.12.1
β”œβ”€ @babel/plugin-transform-react-jsx-self@7.12.1
β”œβ”€ @babel/plugin-transform-react-jsx-source@7.12.1
β”œβ”€ @babel/plugin-transform-react-jsx@7.12.1
β”œβ”€ @babel/plugin-transform-react-pure-annotations@7.12.1
β”œβ”€ @babel/plugin-transform-regenerator@7.12.1
β”œβ”€ @babel/plugin-transform-reserved-words@7.12.1
β”œβ”€ @babel/plugin-transform-runtime@7.12.1
β”œβ”€ @babel/plugin-transform-shorthand-properties@7.12.1
β”œβ”€ @babel/plugin-transform-spread@7.12.1
β”œβ”€ @babel/plugin-transform-sticky-regex@7.12.1
β”œβ”€ @babel/plugin-transform-template-literals@7.12.1
β”œβ”€ @babel/plugin-transform-typeof-symbol@7.12.1
β”œβ”€ @babel/plugin-transform-typescript@7.12.1
β”œβ”€ @babel/plugin-transform-unicode-escapes@7.12.1
β”œβ”€ @babel/plugin-transform-unicode-regex@7.12.1
β”œβ”€ @babel/preset-env@7.12.1
β”œβ”€ @babel/preset-react@7.12.1
β”œβ”€ @babel/preset-typescript@7.12.1
β”œβ”€ @babel/runtime-corejs3@7.12.1
β”œβ”€ @bcoe/v8-coverage@0.2.3
β”œβ”€ @eslint/eslintrc@0.1.3
β”œβ”€ @hapi/joi@15.1.1
β”œβ”€ @istanbuljs/load-nyc-config@1.1.0
β”œβ”€ @jest/core@26.6.1
β”œβ”€ @jest/globals@26.6.1
β”œβ”€ @jest/reporters@26.6.1
β”œβ”€ @jest/test-sequencer@26.6.1
β”œβ”€ @nodelib/fs.scandir@2.1.3
β”œβ”€ @nodelib/fs.stat@2.0.3
β”œβ”€ @nodelib/fs.walk@1.2.4
β”œβ”€ @npmcli/move-file@1.0.1
β”œβ”€ @pmmmwh/react-refresh-webpack-plugin@0.4.2
β”œβ”€ @rollup/plugin-node-resolve@7.1.3
β”œβ”€ @rollup/plugin-replace@2.3.3
β”œβ”€ @sinonjs/commons@1.8.1
β”œβ”€ @sinonjs/fake-timers@6.0.1
β”œβ”€ @surma/rollup-plugin-off-main-thread@1.4.1
β”œβ”€ @svgr/babel-plugin-add-jsx-attribute@5.4.0
β”œβ”€ @svgr/babel-plugin-remove-jsx-attribute@5.4.0
β”œβ”€ @svgr/babel-plugin-remove-jsx-empty-expression@5.0.1
β”œβ”€ @svgr/babel-plugin-replace-jsx-attribute-value@5.0.1
β”œβ”€ @svgr/babel-plugin-svg-dynamic-title@5.4.0
β”œβ”€ @svgr/babel-plugin-svg-em-dimensions@5.4.0
β”œβ”€ @svgr/babel-plugin-transform-react-native-svg@5.4.0
β”œβ”€ @svgr/babel-plugin-transform-svg-component@5.4.0
β”œβ”€ @svgr/babel-preset@5.4.0
β”œβ”€ @svgr/core@5.4.0
β”œβ”€ @svgr/hast-util-to-babel-ast@5.4.0
β”œβ”€ @svgr/plugin-svgo@5.4.0
β”œβ”€ @svgr/webpack@5.4.0
β”œβ”€ @types/anymatch@1.3.1
β”œβ”€ @types/babel__core@7.1.10
β”œβ”€ @types/eslint@7.2.4
β”œβ”€ @types/graceful-fs@4.1.4
β”œβ”€ @types/html-minifier-terser@5.1.1
β”œβ”€ @types/istanbul-reports@3.0.0
β”œβ”€ @types/json-schema@7.0.6
β”œβ”€ @types/json5@0.0.29
β”œβ”€ @types/normalize-package-data@2.4.0
β”œβ”€ @types/prettier@2.1.5
β”œβ”€ @types/resolve@0.0.8
β”œβ”€ @types/source-list-map@0.1.2
β”œβ”€ @types/stack-utils@2.0.0
β”œβ”€ @types/tapable@1.0.6
β”œβ”€ @types/uglify-js@3.11.0
β”œβ”€ @types/webpack-sources@2.0.0
β”œβ”€ @types/webpack@4.41.23
β”œβ”€ @typescript-eslint/eslint-plugin@4.5.0
β”œβ”€ @typescript-eslint/experimental-utils@4.5.0
β”œβ”€ @typescript-eslint/parser@4.5.0
β”œβ”€ @webassemblyjs/floating-point-hex-parser@1.9.0
β”œβ”€ @webassemblyjs/helper-code-frame@1.9.0
β”œβ”€ @webassemblyjs/helper-fsm@1.9.0
β”œβ”€ @webassemblyjs/helper-wasm-section@1.9.0
β”œβ”€ @webassemblyjs/wasm-edit@1.9.0
β”œβ”€ @webassemblyjs/wasm-opt@1.9.0
β”œβ”€ acorn-globals@6.0.0
β”œβ”€ acorn-walk@7.2.0
β”œβ”€ acorn@7.4.1
β”œβ”€ adjust-sourcemap-loader@3.0.0
β”œβ”€ ansi-escapes@4.3.1
β”œβ”€ aria-query@4.2.2
β”œβ”€ array-union@2.1.0
β”œβ”€ array.prototype.flat@1.2.3
β”œβ”€ array.prototype.flatmap@1.2.3
β”œβ”€ arrify@2.0.1
β”œβ”€ at-least-node@1.0.0
β”œβ”€ axe-core@3.5.5
β”œβ”€ axobject-query@2.2.0
β”œβ”€ babel-eslint@10.1.0
β”œβ”€ babel-jest@26.6.1
β”œβ”€ babel-plugin-jest-hoist@26.5.0
β”œβ”€ babel-plugin-named-asset-import@0.3.7
β”œβ”€ babel-preset-current-node-syntax@0.1.4
β”œβ”€ babel-preset-jest@26.5.0
β”œβ”€ babel-preset-react-app@10.0.0
β”œβ”€ bfj@7.0.2
β”œβ”€ builtin-modules@3.1.0
β”œβ”€ cacache@15.0.5
β”œβ”€ char-regex@1.0.2
β”œβ”€ check-types@11.1.2
β”œβ”€ cjs-module-lexer@0.4.3
β”œβ”€ cli-width@3.0.0
β”œβ”€ cliui@6.0.0
β”œβ”€ colorette@1.2.1
β”œβ”€ confusing-browser-globals@1.0.10
β”œβ”€ core-js@3.6.5
β”œβ”€ cra-template@1.1.0
β”œβ”€ cross-spawn@7.0.3
β”œβ”€ crypto-random-string@1.0.0
β”œβ”€ css-loader@4.3.0
β”œβ”€ cssom@0.4.4
β”œβ”€ cssstyle@2.3.0
β”œβ”€ damerau-levenshtein@1.0.6
β”œβ”€ data-urls@2.0.0
β”œβ”€ decimal.js@10.2.1
β”œβ”€ dedent@0.7.0
β”œβ”€ deep-is@0.1.3
β”œβ”€ deepmerge@4.2.2
β”œβ”€ detect-newline@3.1.0
β”œβ”€ diff-sequences@26.5.0
β”œβ”€ dir-glob@3.0.1
β”œβ”€ domexception@2.0.1
β”œβ”€ ejs@2.7.4
β”œβ”€ electron-to-chromium@1.3.583
β”œβ”€ emittery@0.7.2
β”œβ”€ enhanced-resolve@4.3.0
β”œβ”€ enquirer@2.3.6
β”œβ”€ error-stack-parser@2.0.6
β”œβ”€ escalade@3.1.1
β”œβ”€ escodegen@1.14.3
β”œβ”€ eslint-config-react-app@6.0.0
β”œβ”€ eslint-import-resolver-node@0.3.4
β”œβ”€ eslint-module-utils@2.6.0
β”œβ”€ eslint-plugin-flowtype@5.2.0
β”œβ”€ eslint-plugin-import@2.22.1
β”œβ”€ eslint-plugin-jest@24.1.0
β”œβ”€ eslint-plugin-jsx-a11y@6.3.1
β”œβ”€ eslint-plugin-react-hooks@4.2.0
β”œβ”€ eslint-plugin-react@7.21.5
β”œβ”€ eslint-plugin-testing-library@3.9.2
β”œβ”€ eslint-webpack-plugin@2.1.0
β”œβ”€ eslint@7.11.0
β”œβ”€ esquery@1.3.1
β”œβ”€ estree-walker@0.6.1
β”œβ”€ fast-glob@3.2.4
β”œβ”€ fast-levenshtein@2.0.6
β”œβ”€ fastq@1.8.0
β”œβ”€ file-loader@6.1.1
β”œβ”€ filesize@6.1.0
β”œβ”€ fork-ts-checker-webpack-plugin@4.1.6
β”œβ”€ fsevents@2.1.3
β”œβ”€ get-package-type@0.1.0
β”œβ”€ globby@11.0.1
β”œβ”€ hoopy@0.1.4
β”œβ”€ html-encoding-sniffer@2.0.1
β”œβ”€ html-webpack-plugin@4.5.0
β”œβ”€ human-signals@1.1.1
β”œβ”€ immer@7.0.9
β”œβ”€ inquirer@7.3.3
β”œβ”€ is-core-module@2.0.0
β”œβ”€ is-module@1.0.0
β”œβ”€ is-negative-zero@2.0.0
β”œβ”€ is-potential-custom-element-name@1.0.0
β”œβ”€ istanbul-lib-instrument@4.0.3
β”œβ”€ istanbul-lib-source-maps@4.0.0
β”œβ”€ istanbul-reports@3.0.2
β”œβ”€ jest-changed-files@26.6.1
β”œβ”€ jest-circus@26.6.0
β”œβ”€ jest-cli@26.6.1
β”œβ”€ jest-docblock@26.0.0
β”œβ”€ jest-each@26.6.1
β”œβ”€ jest-environment-jsdom@26.6.1
β”œβ”€ jest-environment-node@26.6.1
β”œβ”€ jest-jasmine2@26.6.1
β”œβ”€ jest-leak-detector@26.6.1
β”œβ”€ jest-resolve-dependencies@26.6.1
β”œβ”€ jest-serializer@26.5.0
β”œβ”€ jest-watch-typeahead@0.6.1
β”œβ”€ jest-watcher@26.6.1
β”œβ”€ jest@26.6.0
β”œβ”€ jsdom@16.4.0
β”œβ”€ jsx-ast-utils@2.4.1
β”œβ”€ language-subtag-registry@0.3.20
β”œβ”€ language-tags@1.0.5
β”œβ”€ line-column@1.0.2
β”œβ”€ loglevel@1.7.0
β”œβ”€ lru-cache@6.0.0
β”œβ”€ magic-string@0.25.7
β”œβ”€ mini-css-extract-plugin@0.11.3
β”œβ”€ minizlib@2.1.2
β”œβ”€ nanoid@3.1.15
β”œβ”€ native-url@0.2.6
β”œβ”€ node-notifier@8.0.0
β”œβ”€ nwsapi@2.2.0
β”œβ”€ optimize-css-assets-webpack-plugin@5.0.4
β”œβ”€ optionator@0.9.1
β”œβ”€ p-each-series@2.1.0
β”œβ”€ parse5@5.1.1
β”œβ”€ picomatch@2.2.2
β”œβ”€ portfinder@1.0.28
β”œβ”€ postcss-flexbugs-fixes@4.2.1
β”œβ”€ postcss-modules-local-by-default@3.0.3
β”œβ”€ postcss-modules-scope@2.2.0
β”œβ”€ postcss-safe-parser@5.0.2
β”œβ”€ pretty-bytes@5.4.1
β”œβ”€ promise@8.1.0
β”œβ”€ react-app-polyfill@2.0.0
β”œβ”€ react-dev-utils@11.0.0
β”œβ”€ react-dom@17.0.1
β”œβ”€ react-error-overlay@6.0.8
β”œβ”€ react-refresh@0.8.3
β”œβ”€ react-scripts@4.0.0
β”œβ”€ react@17.0.1
β”œβ”€ read-pkg@5.2.0
β”œβ”€ regex-parser@2.2.11
β”œβ”€ regexpu-core@4.7.1
β”œβ”€ request-promise-core@1.1.4
β”œβ”€ request-promise-native@1.0.9
β”œβ”€ request@2.88.2
β”œβ”€ resolve-cwd@3.0.0
β”œβ”€ resolve-url-loader@3.1.2
β”œβ”€ reusify@1.0.4
β”œβ”€ rollup-plugin-babel@4.4.0
β”œβ”€ rollup-plugin-terser@5.3.1
β”œβ”€ rollup-pluginutils@2.8.2
β”œβ”€ rollup@1.32.1
β”œβ”€ run-parallel@1.1.9
β”œβ”€ rxjs@6.6.3
β”œβ”€ saxes@5.0.1
β”œβ”€ scheduler@0.20.1
β”œβ”€ serialize-javascript@5.0.1
β”œβ”€ sockjs@0.3.20
β”œβ”€ sourcemap-codec@1.4.8
β”œβ”€ spdy@4.0.2
β”œβ”€ ssri@8.0.0
β”œβ”€ stackframe@1.2.0
β”œβ”€ string-natural-compare@3.0.1
β”œβ”€ strip-final-newline@2.0.0
β”œβ”€ strip-json-comments@3.1.1
β”œβ”€ style-loader@1.3.0
β”œβ”€ supports-hyperlinks@2.1.0
β”œβ”€ svg-parser@2.0.4
β”œβ”€ symbol-tree@3.2.4
β”œβ”€ tar@6.0.5
β”œβ”€ temp-dir@1.0.0
β”œβ”€ tempy@0.3.0
β”œβ”€ terminal-link@2.1.1
β”œβ”€ terser-webpack-plugin@4.2.3
β”œβ”€ test-exclude@6.0.0
β”œβ”€ tr46@2.0.2
β”œβ”€ tryer@1.0.1
β”œβ”€ ts-pnp@1.2.0
β”œβ”€ tsconfig-paths@3.9.0
β”œβ”€ type-detect@4.0.8
β”œβ”€ typedarray-to-buffer@3.1.5
β”œβ”€ unique-string@1.0.0
β”œβ”€ url-loader@4.1.1
β”œβ”€ v8-to-istanbul@6.0.1
β”œβ”€ w3c-hr-time@1.0.2
β”œβ”€ w3c-xmlserializer@2.0.0
β”œβ”€ watchpack-chokidar2@2.0.0
β”œβ”€ watchpack@1.7.4
β”œβ”€ webpack-dev-server@3.11.0
β”œβ”€ webpack@4.44.2
β”œβ”€ whatwg-fetch@3.4.1
β”œβ”€ word-wrap@1.2.3
β”œβ”€ workbox-broadcast-update@5.1.4
β”œβ”€ workbox-build@5.1.4
β”œβ”€ workbox-cacheable-response@5.1.4
β”œβ”€ workbox-expiration@5.1.4
β”œβ”€ workbox-google-analytics@5.1.4
β”œβ”€ workbox-navigation-preload@5.1.4
β”œβ”€ workbox-precaching@5.1.4
β”œβ”€ workbox-range-requests@5.1.4
β”œβ”€ workbox-streams@5.1.4
β”œβ”€ workbox-sw@5.1.4
β”œβ”€ workbox-webpack-plugin@5.1.4
β”œβ”€ workbox-window@5.1.4
β”œβ”€ wrap-ansi@6.2.0
β”œβ”€ write-file-atomic@3.0.3
β”œβ”€ xmlchars@2.2.0
└─ yargs-parser@18.1.3
✨  Done in 18.78s.

Initialized a git repository.

Installing template dependencies using yarnpkg...
yarn add v1.22.5
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > @testing-library/user-event@12.1.10" has unmet peer dependency "@testing-library/dom@>=7.21.4".
[4/4] πŸ”¨  Building fresh packages...
warning Error running install script for optional dependency: "/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /private/tmp/storytest/node_modules/chokidar/node_modules/fsevents
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.0
gyp info using node@10.22.0 | darwin | x64
gyp info find Python using Python version 3.8.5 found at \"/usr/local/opt/python@3.8/bin/python3.8\"
gyp info spawn /usr/local/opt/python@3.8/bin/python3.8
gyp info spawn args [ '/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/seb/Library/Caches/node-gyp/10.22.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/seb/Library/Caches/node-gyp/10.22.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/seb/Library/Caches/node-gyp/10.22.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command \"/Users/seb/.nvm/versions/node/v10.22.0/bin/node\" \"/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /private/tmp/storytest/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v10.22.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok"
info This module is OPTIONAL, you can safely ignore this error
success Saved lockfile.
success Saved 17 new dependencies.
info Direct dependencies
β”œβ”€ @testing-library/jest-dom@5.11.5
β”œβ”€ @testing-library/react@11.1.0
β”œβ”€ @testing-library/user-event@12.1.10
β”œβ”€ react-dom@17.0.1
β”œβ”€ react@17.0.1
└─ web-vitals@0.2.4
info All dependencies
β”œβ”€ @testing-library/dom@7.26.3
β”œβ”€ @testing-library/jest-dom@5.11.5
β”œβ”€ @testing-library/react@11.1.0
β”œβ”€ @testing-library/user-event@12.1.10
β”œβ”€ @types/aria-query@4.2.0
β”œβ”€ @types/jest@26.0.15
β”œβ”€ @types/testing-library__jest-dom@5.9.5
β”œβ”€ css.escape@1.5.1
β”œβ”€ css@3.0.0
β”œβ”€ dom-accessibility-api@0.5.4
β”œβ”€ lz-string@1.4.4
β”œβ”€ min-indent@1.0.1
β”œβ”€ react-dom@17.0.1
β”œβ”€ react@17.0.1
β”œβ”€ redent@3.0.0
β”œβ”€ strip-indent@3.0.0
└─ web-vitals@0.2.4
✨  Done in 5.52s.
Removing template package using yarnpkg...

yarn remove v1.22.5
[1/2] πŸ—‘  Removing module cra-template...
[2/2] πŸ”¨  Regenerating lockfile and installing missing dependencies...
warning " > @testing-library/user-event@12.1.10" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[-/5] β „ waiting...
[2/5] β „ fsevents
[-/5] β „ waiting...
[-/5] β „ waiting...
warning Error running install script for optional dependency: "/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /private/tmp/storytest/node_modules/chokidar/node_modules/fsevents
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.0
gyp info using node@10.22.0 | darwin | x64
gyp info find Python using Python version 3.8.5 found at \"/usr/local/opt/python@3.8/bin/python3.8\"
gyp info spawn /usr/local/opt/python@3.8/bin/python3.8
gyp info spawn args [ '/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/seb/Library/Caches/node-gyp/10.22.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/seb/Library/Caches/node-gyp/10.22.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/seb/Library/Caches/node-gyp/10.22.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command \"/Users/seb/.nvm/versions/node/v10.22.0/bin/node\" \"/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /private/tmp/storytest/node_modules/chokidar/node_modules/fsevents
success Uninstalled packages.
✨  Done in 5.02s.

Created git commit.

Success! Created storytest at /private/tmp/storytest
Inside that directory, you can run several commands:

  yarn start
    Starts the development server.

  yarn build
    Bundles the app into static files for production.

  yarn test
    Starts the test runner.

  yarn eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd storytest
  yarn start

Happy hacking!

 sb init - the simplest way to add a Storybook to your project.

 β€’ Detecting project type. βœ“
yarn add v1.22.5
[1/4] πŸ”  Resolving packages...
warning @storybook/react > @storybook/core > @storybook/components > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
warning @storybook/react > @storybook/core > @storybook/components > react-popper-tooltip > react-popper > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning " > @testing-library/user-event@12.1.10" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > babel-loader@8.1.0" has unmet peer dependency "webpack@>=2".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning "@storybook/react > react-docgen-typescript-plugin@0.5.2" has unmet peer dependency "typescript@>= 3.x".
warning "@storybook/react > react-docgen-typescript-plugin > react-docgen-typescript@1.20.5" has unmet peer dependency "typescript@>= 3.x".
warning "@storybook/react > react-docgen-typescript-plugin > react-docgen-typescript-loader@3.7.2" has unmet peer dependency "typescript@*".
warning "@storybook/react > @storybook/addons > @storybook/api > @reach/router@1.3.4" has incorrect peer dependency "react-dom@15.x || 16.x || 16.4.0-alpha.0911da3".
warning " > @storybook/addon-essentials@6.0.27" has incorrect peer dependency "react@^16.8.0".
warning " > @storybook/addon-essentials@6.0.27" has incorrect peer dependency "react-is@^16.8.0".
warning "@storybook/addon-essentials > @storybook/addon-docs@6.0.27" has incorrect peer dependency "react-is@^16.8.0".
warning "@storybook/addon-essentials > @storybook/addon-docs > @mdx-js/react@1.6.19" has incorrect peer dependency "react@^16.13.1".
warning "@storybook/addon-essentials > @storybook/addon-docs > react-element-to-jsx-string@14.3.1" has incorrect peer dependency "react@^0.14.8 || ^15.0.1 || ^16.0.0".
warning "@storybook/addon-essentials > @storybook/addon-docs > react-element-to-jsx-string@14.3.1" has incorrect peer dependency "react-dom@^0.14.8 || ^15.0.1 || ^16.0.0".
[4/4] πŸ”¨  Building fresh packages...
[1/3] β   fsevents
[-/3] β   waiting...
warning Error running install script for optional dependency: "/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /private/tmp/storytest/node_modules/chokidar/node_modules/fsevents
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@5.1.0
gyp info using node@10.22.0 | darwin | x64
gyp info find Python using Python version 3.8.5 found at \"/usr/local/opt/python@3.8/bin/python3.8\"
gyp info spawn /usr/local/opt/python@3.8/bin/python3.8
gyp info spawn args [ '/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/seb/Library/Caches/node-gyp/10.22.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/seb/Library/Caches/node-gyp/10.22.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/seb/Library/Caches/node-gyp/10.22.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/private/tmp/storytest/node_modules/chokidar/node_modules/fsevents',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command \"/Users/seb/.nvm/versions/node/v10.22.0/bin/node\" \"/Users/seb/.nvm/versions/node/v10.22.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /private/tmp/storytest/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v10.22.0
gyp ERR! node-gyp -v v5.1.0
success Saved lockfile.
success Saved 246 new dependencies.
info Direct dependencies
β”œβ”€ @storybook/addon-actions@6.0.27
β”œβ”€ @storybook/addon-essentials@6.0.27
β”œβ”€ @storybook/addon-links@6.0.27
β”œβ”€ @storybook/node-logger@6.0.27
β”œβ”€ @storybook/preset-create-react-app@3.1.4
└─ @storybook/react@6.0.27
info All dependencies
β”œβ”€ @babel/plugin-proposal-export-default-from@7.12.1
β”œβ”€ @babel/plugin-syntax-export-default-from@7.12.1
β”œβ”€ @babel/preset-flow@7.12.1
β”œβ”€ @babel/register@7.12.1
β”œβ”€ @base2/pretty-print-object@1.0.0
β”œβ”€ @emotion/cache@10.0.29
β”œβ”€ @emotion/css@10.0.27
β”œβ”€ @emotion/is-prop-valid@0.8.8
β”œβ”€ @emotion/styled-base@10.0.31
β”œβ”€ @emotion/styled@10.0.27
β”œβ”€ @emotion/stylis@0.8.5
β”œβ”€ @emotion/unitless@0.7.5
β”œβ”€ @icons/material@0.2.4
β”œβ”€ @mdx-js/loader@1.6.19
β”œβ”€ @mdx-js/mdx@1.6.19
β”œβ”€ @mdx-js/react@1.6.19
β”œβ”€ @mrmlnc/readdir-enhanced@2.2.1
β”œβ”€ @storybook/addon-actions@6.0.27
β”œβ”€ @storybook/addon-backgrounds@6.0.27
β”œβ”€ @storybook/addon-controls@6.0.27
β”œβ”€ @storybook/addon-docs@6.0.27
β”œβ”€ @storybook/addon-essentials@6.0.27
β”œβ”€ @storybook/addon-links@6.0.27
β”œβ”€ @storybook/addon-toolbars@6.0.27
β”œβ”€ @storybook/addon-viewport@6.0.27
β”œβ”€ @storybook/node-logger@6.0.27
β”œβ”€ @storybook/postinstall@6.0.27
β”œβ”€ @storybook/preset-create-react-app@3.1.4
β”œβ”€ @storybook/react@6.0.27
β”œβ”€ @storybook/source-loader@6.0.27
β”œβ”€ @storybook/ui@6.0.27
β”œβ”€ @types/braces@3.0.0
β”œβ”€ @types/glob-base@0.3.0
β”œβ”€ @types/glob@7.1.3
β”œβ”€ @types/hast@2.3.1
β”œβ”€ @types/history@4.7.8
β”œβ”€ @types/is-function@1.0.0
β”œβ”€ @types/markdown-to-jsx@6.11.2
β”œβ”€ @types/mdast@3.0.3
β”œβ”€ @types/micromatch@4.0.1
β”œβ”€ @types/node-fetch@2.5.7
β”œβ”€ @types/npmlog@4.1.2
β”œβ”€ @types/overlayscrollbars@1.12.0
β”œβ”€ @types/parse5@5.0.3
β”œβ”€ @types/prop-types@15.7.3
β”œβ”€ @types/react-color@3.0.4
β”œβ”€ @types/react-syntax-highlighter@11.0.4
β”œβ”€ @types/reactcss@1.2.3
β”œβ”€ @webpack-contrib/schema-utils@1.0.0-beta.0
β”œβ”€ acorn-jsx@5.3.1
β”œβ”€ airbnb-js-shims@2.2.1
β”œβ”€ ansi-align@3.0.0
β”œβ”€ ansi-to-html@0.6.14
β”œβ”€ app-root-dir@1.0.2
β”œβ”€ are-we-there-yet@1.1.5
β”œβ”€ array.prototype.map@1.0.2
β”œβ”€ babel-code-frame@6.26.0
β”œβ”€ babel-helper-is-nodes-equiv@0.0.1
β”œβ”€ babel-helper-remove-or-void@0.4.3
β”œβ”€ babel-helper-to-multiple-sequence-expressions@0.5.0
β”œβ”€ babel-plugin-add-react-displayname@0.0.5
β”œβ”€ babel-plugin-extract-import-names@1.6.19
β”œβ”€ babel-plugin-minify-builtins@0.5.0
β”œβ”€ babel-plugin-minify-constant-folding@0.5.0
β”œβ”€ babel-plugin-minify-dead-code-elimination@0.5.1
β”œβ”€ babel-plugin-minify-flip-comparisons@0.4.3
β”œβ”€ babel-plugin-minify-guarded-expressions@0.4.4
β”œβ”€ babel-plugin-minify-infinity@0.4.3
β”œβ”€ babel-plugin-minify-mangle-names@0.5.0
β”œβ”€ babel-plugin-minify-numeric-literals@0.4.3
β”œβ”€ babel-plugin-minify-replace@0.5.0
β”œβ”€ babel-plugin-minify-simplify@0.5.1
β”œβ”€ babel-plugin-minify-type-constructors@0.4.3
β”œβ”€ babel-plugin-react-docgen@4.2.1
β”œβ”€ babel-plugin-syntax-jsx@6.18.0
β”œβ”€ babel-plugin-transform-inline-consecutive-adds@0.4.3
β”œβ”€ babel-plugin-transform-member-expression-literals@6.9.4
β”œβ”€ babel-plugin-transform-merge-sibling-variables@6.9.4
β”œβ”€ babel-plugin-transform-minify-booleans@6.9.4
β”œβ”€ babel-plugin-transform-property-literals@6.9.4
β”œβ”€ babel-plugin-transform-regexp-constructors@0.4.3
β”œβ”€ babel-plugin-transform-remove-console@6.9.4
β”œβ”€ babel-plugin-transform-remove-debugger@6.9.4
β”œβ”€ babel-plugin-transform-remove-undefined@0.5.0
β”œβ”€ babel-plugin-transform-simplify-comparison-operators@6.9.4
β”œβ”€ babel-plugin-transform-undefined-to-void@6.9.4
β”œβ”€ babel-preset-minify@0.5.1
β”œβ”€ bail@1.0.5
β”œβ”€ batch-processor@1.0.0
β”œβ”€ better-opn@2.1.1
β”œβ”€ boxen@4.2.0
β”œβ”€ call-me-maybe@1.0.1
β”œβ”€ camelcase-css@2.0.1
β”œβ”€ classnames@2.2.6
β”œβ”€ cli-boxes@2.2.1
β”œβ”€ cli-table3@0.6.0
β”œβ”€ code-point-at@1.1.0
β”œβ”€ collapse-white-space@1.0.6
β”œβ”€ colors@1.4.0
β”œβ”€ console-control-strings@1.1.0
β”œβ”€ copy-to-clipboard@3.3.1
β”œβ”€ csstype@2.6.13
β”œβ”€ deep-object-diff@1.1.0
β”œβ”€ delegate@3.2.0
β”œβ”€ delegates@1.0.0
β”œβ”€ detab@2.0.3
β”œβ”€ detect-port@1.3.0
β”œβ”€ dom-walk@0.1.2
β”œβ”€ dotenv-defaults@1.1.1
β”œβ”€ dotenv-webpack@1.8.0
β”œβ”€ ejs@3.1.5
β”œβ”€ element-resize-detector@1.2.1
β”œβ”€ endent@2.0.1
β”œβ”€ es-array-method-boxes-properly@1.0.0
β”œβ”€ es-get-iterator@1.1.0
β”œβ”€ es5-shim@4.5.14
β”œβ”€ es6-shim@0.35.6
β”œβ”€ fast-json-parse@1.0.3
β”œβ”€ fault@1.0.4
β”œβ”€ file-system-cache@1.0.5
β”œβ”€ filelist@1.0.1
β”œβ”€ filesize@6.0.1
β”œβ”€ find-root@1.1.0
β”œβ”€ form-data@3.0.0
β”œβ”€ format@0.2.2
β”œβ”€ function.prototype.name@1.1.2
β”œβ”€ functions-have-names@1.2.1
β”œβ”€ fuse.js@3.6.1
β”œβ”€ gauge@2.7.4
β”œβ”€ github-slugger@1.3.0
β”œβ”€ glob-base@0.3.0
β”œβ”€ glob-promise@3.4.0
β”œβ”€ glob-to-regexp@0.3.0
β”œβ”€ globalthis@1.0.1
β”œβ”€ good-listener@1.2.2
β”œβ”€ gud@1.0.0
β”œβ”€ has-ansi@2.0.0
β”œβ”€ has-unicode@2.0.1
β”œβ”€ hast-to-hyperscript@9.0.0
β”œβ”€ hast-util-from-parse5@6.0.0
β”œβ”€ hast-util-parse-selector@2.2.4
β”œβ”€ hast-util-raw@6.0.1
β”œβ”€ hast-util-to-parse5@6.0.0
β”œβ”€ highlight.js@9.15.10
β”œβ”€ hoist-non-react-statics@3.3.2
β”œβ”€ html-tags@3.1.0
β”œβ”€ html-void-elements@1.0.5
β”œβ”€ immer@1.10.0
β”œβ”€ inline-style-parser@0.1.1
β”œβ”€ interpret@2.2.0
β”œβ”€ is-alphabetical@1.0.4
β”œβ”€ is-dom@1.1.0
β”œβ”€ is-function@1.0.2
β”œβ”€ is-map@2.0.1
β”œβ”€ is-object@1.0.1
β”œβ”€ is-set@2.0.1
β”œβ”€ is-whitespace-character@1.0.4
β”œβ”€ is-window@1.0.2
β”œβ”€ is-word-character@1.0.4
β”œβ”€ iterate-iterator@1.0.1
β”œβ”€ iterate-value@1.0.2
β”œβ”€ jake@10.8.2
β”œβ”€ js-string-escape@1.0.1
β”œβ”€ klaw@1.3.1
β”œβ”€ lazy-universal-dotenv@3.0.1
β”œβ”€ log-symbols@2.2.0
β”œβ”€ loglevelnext@1.0.5
β”œβ”€ lowlight@1.12.1
β”œβ”€ map-or-similar@1.5.0
β”œβ”€ markdown-escapes@1.0.4
β”œβ”€ material-colors@1.2.6
β”œβ”€ mdast-squeeze-paragraphs@4.0.0
β”œβ”€ mdast-util-definitions@2.0.1
β”œβ”€ mdast-util-to-hast@9.1.1
β”œβ”€ mdast-util-to-string@1.1.0
β”œβ”€ mdurl@1.0.1
β”œβ”€ min-document@2.19.0
β”œβ”€ node-dir@0.1.17
β”œβ”€ node-fetch@2.6.1
β”œβ”€ npmlog@4.1.2
β”œβ”€ number-is-nan@1.0.1
β”œβ”€ objectorarray@1.0.4
β”œβ”€ overlayscrollbars@1.13.0
β”œβ”€ parse-entities@1.2.2
β”œβ”€ parse5@6.0.1
β”œβ”€ popper.js@1.16.1
β”œβ”€ prettier@2.0.5
β”œβ”€ prismjs@1.22.0
β”œβ”€ promise.allsettled@1.0.2
β”œβ”€ promise.prototype.finally@3.1.2
β”œβ”€ property-information@5.6.0
β”œβ”€ ramda@0.21.0
β”œβ”€ raw-loader@4.0.2
β”œβ”€ react-color@2.18.1
β”œβ”€ react-docgen-typescript-loader@3.7.2
β”œβ”€ react-docgen-typescript-plugin@0.5.2
β”œβ”€ react-docgen-typescript@1.20.5
β”œβ”€ react-docgen@5.3.1
β”œβ”€ react-draggable@4.4.3
β”œβ”€ react-element-to-jsx-string@14.3.1
β”œβ”€ react-fast-compare@3.2.0
β”œβ”€ react-lifecycles-compat@3.0.4
β”œβ”€ react-popper-tooltip@2.11.1
β”œβ”€ react-syntax-highlighter@12.2.1
β”œβ”€ react-textarea-autosize@8.2.0
β”œβ”€ reactcss@1.2.3
β”œβ”€ rechoir@0.6.2
β”œβ”€ refractor@2.10.1
β”œβ”€ remark-external-links@6.1.0
β”œβ”€ remark-footnotes@2.0.0
β”œβ”€ remark-mdx@1.6.19
β”œβ”€ remark-slug@6.0.0
β”œβ”€ remark-squeeze-paragraphs@4.0.0
β”œβ”€ replace-ext@1.0.0
β”œβ”€ select@1.1.2
β”œβ”€ serve-favicon@2.5.0
β”œβ”€ shelljs@0.8.4
β”œβ”€ state-toggle@1.0.3
β”œβ”€ string.prototype.padend@3.1.0
β”œβ”€ string.prototype.padstart@3.1.0
β”œβ”€ style-to-object@0.3.0
β”œβ”€ symbol.prototype.description@1.0.2
β”œβ”€ term-size@2.2.0
β”œβ”€ throttle-debounce@2.3.0
β”œβ”€ tiny-emitter@2.1.0
β”œβ”€ tinycolor2@1.4.2
β”œβ”€ toggle-selection@1.0.6
β”œβ”€ trim-trailing-lines@1.1.3
β”œβ”€ trim@0.0.1
β”œβ”€ trough@1.0.5
β”œβ”€ ts-essentials@2.0.12
β”œβ”€ typed-styles@0.0.7
β”œβ”€ unfetch@4.2.0
β”œβ”€ unherit@1.1.3
β”œβ”€ unist-builder@2.0.3
β”œβ”€ unist-util-generated@1.1.5
β”œβ”€ unist-util-remove-position@2.0.1
β”œβ”€ unist-util-remove@2.0.0
β”œβ”€ unist-util-visit-parents@3.1.1
β”œβ”€ vfile-location@3.1.0
β”œβ”€ vfile-message@2.0.4
β”œβ”€ warning@4.0.3
β”œβ”€ webpack-hot-middleware@2.25.0
β”œβ”€ webpack-virtual-modules@0.2.2
β”œβ”€ wide-align@1.1.3
└─ widest-line@3.1.0
✨  Done in 19.55s.
. βœ“
 β€’ Preparing to install dependencies. βœ“

yarn install v1.22.5
[1/4] πŸ”  Resolving packages...
success Already up-to-date.
✨  Done in 0.54s.
. βœ“

To run your Storybook, type:

   yarn storybook

For more information visit: https://storybook.js.org

> storytest@0.1.0 storybook /private/tmp/storytest
> start-storybook -p 6006 -s public

info @storybook/react v6.0.27
info
info => Loading static files from: /private/tmp/storytest/public .
info => Loading presets
info => Loading presets
info => Loading config/preview file in "./.storybook".
info => Loading config/preview file in "./.storybook".
info => Adding stories defined in ".storybook/main.js".
info => Loading Webpack configuration from `node_modules/react-scripts`
info => Removing existing JavaScript and TypeScript rules.
ERR! Error: You gave us a visitor for the node type StaticBlock but it's not a valid type
ERR!     at verify (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:112:13)
ERR!     at explode (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:34:3)
ERR!     at Object.merge (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:147:5)
ERR!     at Object.<anonymous> (/private/tmp/storytest/node_modules/@babel/helper-replace-supers/lib/index.js:60:44)
ERR!     at Module._compile (internal/modules/cjs/loader.js:778:30)
ERR!     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
ERR!     at Module.load (internal/modules/cjs/loader.js:653:32)
ERR!     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
ERR!     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
ERR!     at Module.require (internal/modules/cjs/loader.js:692:17)
ERR!     at require (internal/modules/cjs/helpers.js:25:18)
ERR!     at Object.<anonymous> (/private/tmp/storytest/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js:13:52)
ERR!     at Module._compile (internal/modules/cjs/loader.js:778:30)
ERR!     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
ERR!     at Module.load (internal/modules/cjs/loader.js:653:32)
ERR!     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
ERR!  { Error: You gave us a visitor for the node type StaticBlock but it's not a valid type
ERR!     at verify (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:112:13)
ERR!     at explode (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:34:3)
ERR!     at Object.merge (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:147:5)
ERR!     at Object.<anonymous> (/private/tmp/storytest/node_modules/@babel/helper-replace-supers/lib/index.js:60:44)
ERR!     at Module._compile (internal/modules/cjs/loader.js:778:30)
ERR!     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
ERR!     at Module.load (internal/modules/cjs/loader.js:653:32)
ERR!     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
ERR!     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
ERR!     at Module.require (internal/modules/cjs/loader.js:692:17)
ERR!     at require (internal/modules/cjs/helpers.js:25:18)
ERR!     at Object.<anonymous> (/private/tmp/storytest/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js:13:52)
ERR!     at Module._compile (internal/modules/cjs/loader.js:778:30)
ERR!     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
ERR!     at Module.load (internal/modules/cjs/loader.js:653:32)
ERR!     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
ERR!   stack:
ERR!    'Error: You gave us a visitor for the node type StaticBlock but it\'s not a valid type\n    at verify (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:112:13)\n    at explode (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:34:3)\n    at Object.merge (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:147:5)\n    at Object.<anonymous> (/private/tmp/storytest/node_modules/@babel/helper-replace-supers/lib/index.js:60:44)\n    at Module._compile (internal/modules/cjs/loader.js:778:30)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)\n    at Module.load (internal/modules/cjs/loader.js:653:32)\n    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)\n    at Function.Module._load (internal/modules/cjs/loader.js:585:3)\n    at Module.require (internal/modules/cjs/loader.js:692:17)\n    at require (internal/modules/cjs/helpers.js:25:18)\n    at Object.<anonymous> (/private/tmp/storytest/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js:13:52)\n    at Module._compile (internal/modules/cjs/loader.js:778:30)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)\n    at Module.load (internal/modules/cjs/loader.js:653:32)\n    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)' }

WARN Broken build, fix the error above.
WARN You may need to refresh the browser.

βœ– ο½’wdmο½£: Hash: 0e4f3c002878642377f1
Version: webpack 4.44.2
Time: 2685ms
Built at: 10/23/2020 9:21:46 PM
                                      Asset      Size        Chunks                                Chunk Names
                                 index.html  2.79 KiB                [emitted]
        main.39c3733cb1f7e3197bf4.bundle.js  82.5 KiB          main  [emitted] [immutable]         main
runtime~main.99691078705b39185f99.bundle.js  6.12 KiB  runtime~main  [emitted] [immutable]         runtime~main
vendors~main.968cd903e9a16b088700.bundle.js  3.02 MiB  vendors~main  [emitted] [immutable]  [big]  vendors~main
Entrypoint main [big] = runtime~main.99691078705b39185f99.bundle.js vendors~main.968cd903e9a16b088700.bundle.js main.39c3733cb1f7e3197bf4.bundle.js
[0] multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/client/manager/index.js ./node_modules/@storybook/addon-links/dist/register.js ./node_modules/@storybook/addon-actions/dist/register.js ./node_modules/@storybook/addon-docs/dist/register.js ./node_modules/@storybook/addon-controls/dist/register.js ./node_modules/@storybook/addon-backgrounds/dist/register.js ./node_modules/@storybook/addon-viewport/dist/register.js ./node_modules/@storybook/addon-toolbars/dist/register.js ./.storybook/generated-refs.js 136 bytes {main} [built]
[./.storybook/generated-refs.js] 1.38 KiB {main} [built] [failed] [1 error]
[./node_modules/@storybook/addon-actions/dist/constants.js] 541 bytes {vendors~main} [built]
[./node_modules/@storybook/addon-actions/dist/containers/ActionLogger/index.js] 8.63 KiB {vendors~main} [built]
[./node_modules/@storybook/addon-actions/dist/register.js] 804 bytes {vendors~main} [built]
[./node_modules/@storybook/addon-backgrounds/dist/constants.js] 452 bytes {vendors~main} [built]
[./node_modules/@storybook/addon-backgrounds/dist/containers/BackgroundSelector.js] 13.2 KiB {vendors~main} [built]
[./node_modules/@storybook/addon-backgrounds/dist/register.js] 2.18 KiB {vendors~main} [built]
[./node_modules/@storybook/addon-controls/dist/register.js] 2.34 KiB {vendors~main} [built]
[./node_modules/@storybook/addon-docs/dist/register.js] 1.99 KiB {vendors~main} [built]
[./node_modules/@storybook/addon-links/dist/register.js] 1.92 KiB {vendors~main} [built]
[./node_modules/@storybook/addon-toolbars/dist/register.js] 2.01 KiB {vendors~main} [built]
[./node_modules/@storybook/addon-viewport/dist/register.js] 1.92 KiB {vendors~main} [built]
[./node_modules/@storybook/core/dist/client/manager/index.js] 521 bytes {vendors~main} [built]
[./node_modules/@storybook/core/dist/server/common/polyfills.js] 120 bytes {vendors~main} [built]
    + 511 hidden modules

ERROR in ./.storybook/generated-refs.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: You gave us a visitor for the node type StaticBlock but it's not a valid type
    at verify (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:112:13)
    at explode (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:34:3)
    at Object.merge (/private/tmp/storytest/node_modules/@babel/traverse/lib/visitors.js:147:5)
    at Object.<anonymous> (/private/tmp/storytest/node_modules/@babel/helper-replace-supers/lib/index.js:60:44)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/private/tmp/storytest/node_modules/@babel/helper-create-class-features-plugin/lib/fields.js:13:52)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
 @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/client/manager/index.js ./node_modules/@storybook/addon-links/dist/register.js ./node_modules/@storybook/addon-actions/dist/register.js ./node_modules/@storybook/addon-docs/dist/register.js ./node_modules/@storybook/addon-controls/dist/register.js ./node_modules/@storybook/addon-backgrounds/dist/register.js ./node_modules/@storybook/addon-viewport/dist/register.js ./node_modules/@storybook/addon-toolbars/dist/register.js ./.storybook/generated-refs.js main[9]
Child HtmlWebpackCompiler:
                          Asset      Size               Chunks  Chunk Names
    __child-HtmlWebpackPlugin_0  6.32 KiB  HtmlWebpackPlugin_0  HtmlWebpackPlugin_0
    Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
    [./node_modules/html-webpack-plugin/lib/loader.js!./node_modules/@storybook/core/dist/server/templates/index.ejs] 2.11 KiB {HtmlWebpackPlugin_0} [built]
WARN Unable to close preview build!
^C
/tmp/storytest %

System

Environment Info:

  System:
    OS: macOS 10.15.7
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Binaries:
    Node: 10.22.0 - ~/.nvm/versions/node/v10.22.0/bin/node
    Yarn: 1.22.5 - ~/.nvm/versions/node/v10.22.0/bin/yarn
    npm: 6.14.6 - ~/.nvm/versions/node/v10.22.0/bin/npm
  Browsers:
    Chrome: 86.0.4240.111
    Firefox: 78.0.2
    Safari: 14.0
  npmPackages:
    @storybook/addon-actions: ^6.0.27 => 6.0.27
    @storybook/addon-essentials: ^6.0.27 => 6.0.27
    @storybook/addon-links: ^6.0.27 => 6.0.27
    @storybook/node-logger: ^6.0.27 => 6.0.27
    @storybook/preset-create-react-app: ^3.1.4 => 3.1.4
    @storybook/react: ^6.0.27 => 6.0.27

Additional context None

shilman commented 4 years ago

The following fixes it for me:

rm yarn.lock && yarn

I think there's a babel version inconsistency between CRA@4 and Storybook@6, but I'm not sure what's the proper fix.

shilman commented 4 years ago

NOTE: this is hopefully fixed in 6.1 ☝️ . We need to get it back into the stable release, but are having problems with repros in CI. In the meantime if people can upgrade to 6.1 to test it out, please give it a try and report back:

npx sb upgrade --prerelease

If it doesn't work right away, try removing regenerating lockfiles.

martinpesout commented 3 years ago

I'm getting the same problem. But for me I started to see You gave us a visitor for the node type StaticBlock but it's not a valid type error after upgrading to 6.1 from 6.0.26.

koop commented 3 years ago

Seeing this reliably when upgrading from 6.1.0-alpha.22 to 6.1.1 β€”Β regenerating the lockfile doesn’t help. We’re not using CRA, but we are using babel for building our code outside of Storybook. I’ll update if I find a specific Babel version/config that fixes the issue.

koop commented 3 years ago

Removing node_modules fixed the issue for me.

Rebuilding my yarn.lock was not enough. Here's why:

I think it's safe to mark this closed.

shilman commented 3 years ago

Great detective work @koop. Thanks so much, closing!

jazzfog commented 3 years ago

Same here, just rm yarn.lock && yarn did not work but also deleting node_modules did the trick.

Run from the app directory:

rm -rf ./node_modules && rm yarn.lock && yarn
maksnester commented 2 years ago
rm -rf ./node_modules && yarn install --force

worked for me without removing yarn.lock

lucasfelixc commented 2 years ago

My error is

Error: [BABEL] /vercel/path0/src/index.tsx: You gave us a visitor for the node type TSInstantiationExpression but it's not a valid type

but none of the indications worked for me :(

tjweihra commented 2 years ago

My error is

Error: [BABEL] /vercel/path0/src/index.tsx: You gave us a visitor for the node type TSInstantiationExpression but it's not a valid type

but none of the indications worked for me :(

Getting this same issue on a new expo typescript project

lucasfelixc commented 2 years ago

@tjweihra what's the version of your react-scripts package? I updated mine to 5.0.1 and it solved. But now I have a new error:

Module not found: Error: Can't resolve '/vercel/path0/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js' in '/vercel/path0/src/styles

tjweihra commented 2 years ago

@lucasfelixc I just found the issue, my global npm version for expo-cli was 4.x.x, after upgrading i'm now on version 5.4.6. It seems to have fixed my issue, apologies if that doesn't help.

TalGriman commented 2 years ago

node_modules\@react-navigation\native\src\index.tsx: [BABEL] E:\development\zionet\react-native\expo-cli\flights\node_modules\@react-navigation\native\src\index.tsx: You gave us a visitor for the node type TSInstantiationExpression but it's not a valid type

this is my error today, 2 days ago all worked fine while opened projects... today every project this error :( will be thanksfull for help.

TalGriman commented 2 years ago

tjweihra

update the global expo looks like it work, tnx a lot!

PauloJorgeS commented 2 years ago

I got :

Error: [BABEL] /**/client/src/index.tsx: You gave us a visitor for the node type TSInstantiationExpression but it's not a valid type
    at Generator.next (<anonymous>)
    at Generator.next (<anonymous>)

Still don't get what is the problem. I try to update the react-scripts to "5.0.0"

andrew-aladev commented 2 years ago

You gave us a visitor for the node type TSInstantiationExpression

I've received the same error during global update of project packages. It means babel runtime or one of its part is too old. You have to keep react-script 3.4.4 for now and try to update other packages. The same scenario should be used for other packages.

You should estimate large amount of time for any project packages update. For my case: I should find an ideal balance between 6800 package dependecies (including parts of babel).

davidfirst commented 2 years ago

I started getting the same error today (worked fine yesterday):

You gave us a visitor for the node type TSInstantiationExpression but it's not a valid type

In my case, I use babel programmatically to compile typescript. I don't use react-script nor expo-cli. so none of the solutions above could help.

Edit: many babel packages were updated to 7.18.0 yesterday. One of the merged PRs is Add support for instantiation expressions , it might be related.

wibb36 commented 2 years ago

2 days ago was working, now babel broke the internet. I just wasted a day and still unresolved. I'm getting the error in a Next.js project using (expo) & babel.

I updated Expo-cli to 5.4.6 and all that is suggested above, no solution.

Error: [BABEL] .../pages/_app.tsx: You gave us a visitor for the node type TSInstantiationExpression but it's not a valid type 

at Generator.next (<anonymous>)

Any solution even temporary?

wyattades commented 2 years ago

Forcing @babel/core and @babel/types back to version 7.17 fixed the issue for me, although it feels hacky...

Add the resolutions to package.json:

  "resolutions": {
    "@babel/core": "7.17.12",
    "@babel/types": "7.17.12"
  }

Then rm -rf node_modules && yarn