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

Error while initializing babel in docz #1739

Open
kxnkxv opened this issue Aug 18, 2022 · 3 comments
Open

Error while initializing babel in docz #1739

kxnkxv opened this issue Aug 18, 2022 · 3 comments

Comments

@kxnkxv
Copy link

kxnkxv commented Aug 18, 2022

Error while initializing babel in docz: Error: Configuration contains string/RegExp pattern, but no filename was passed to Babel

  1. yarn add docz # react react-dom in existing project
  2. run docz:dev

Output:

Error while initializing babel in docz:  Error: Configuration contains string/RegExp pattern, but no filename was passed to Babel
    at matchPattern (/Users/kxnkxv/Desktop/frontend/node_modules/react-docgen/node_modules/@babel/core/lib/config/config-chain.js:556:11)
    at /Users/kxnkxv/Desktop/frontend/node_modules/react-docgen/node_modules/@babel/core/lib/config/config-chain.js:543:35
    at Array.some (<anonymous>)
    at matchesPatterns (/Users/kxnkxv/Desktop/frontend/node_modules/react-docgen/node_modules/@babel/core/lib/config/config-chain.js:543:19)
    at configFieldIsApplicable (/Users/kxnkxv/Desktop/frontend/node_modules/react-docgen/node_modules/@babel/core/lib/config/config-chain.js:501:10)
    at configIsApplicable (/Users/kxnkxv/Desktop/frontend/node_modules/react-docgen/node_modules/@babel/core/lib/config/config-chain.js:496:233)
    at /Users/kxnkxv/Desktop/frontend/node_modules/react-docgen/node_modules/@babel/core/lib/config/config-chain.js:316:9
    at Generator.next (<anonymous>)
    at loadFileChain (/Users/kxnkxv/Desktop/frontend/node_modules/react-docgen/node_modules/@babel/core/lib/config/config-chain.js:232:24)
    at loadFileChain.next (<anonymous>)
/Users/kxnkxv/Desktop/frontend/node_modules/docz-core/dist/index.js:1605
  throw new Error(e); // babylon = require('react-docgen/dist/babylon').default
  ^

Error: Error: Configuration contains string/RegExp pattern, but no filename was passed to Babel
    at Object.<anonymous> (/Users/kxnkxv/Desktop/frontend/node_modules/docz-core/dist/index.js:1605:9)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/kxnkxv/Desktop/frontend/node_modules/docz/bin/index.js:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Process finished with exit code 1
@Xiphe
Copy link

Xiphe commented Aug 20, 2022

Hey @kxnkxv. It seems this project is currently not in a very usable state (ref #1735 #1731).

Maybe we should rebuild it?

@kxnkxv
Copy link
Author

kxnkxv commented Aug 23, 2022

I will be happy to help if there is a task that will be up to my teeth

@pedronauck
Copy link
Member

Will be awesome to have your help here guys 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants