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

cosmiconfig(...).search() is not a function #39

Open
glenndevenish opened this issue Jan 13, 2019 · 3 comments
Open

cosmiconfig(...).search() is not a function #39

glenndevenish opened this issue Jan 13, 2019 · 3 comments

Comments

@glenndevenish
Copy link

I've run into an error, but I'm not sure what has triggered it. Here is the error message:

 DONE  Compiled successfully in 1121ms                                                        
...\build\index.js:103
const explorer = cosmiconfig('graphpack').search();
                                          ^

TypeError: cosmiconfig(...).search is not a function
    at Object../node_modules/graphpack/config/index.js (...\build\index.js:103:43)
    at __webpack_require__ (...\build\index.js:21:30)
    at Module../node_modules/graphpack/lib/server.js (...\build\index.js:240:65)
    at __webpack_require__ (...\build\index.js:21:30)
    at Object.0 (...\build\index.js:700:18)
    at __webpack_require__ (...\build\index.js:21:30)
    at ...\build\index.js:85:18
    at Object.<anonymous> (...\build\index.js:88:10)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)

I've tried running graphpack and graphpack build then node ./build/index.js, but both methods throw this error.

@glennreyes
Copy link
Owner

I am not sure either. Can you please send a minimal codesandbox sample that reproduces this? Thanks!

@glenndevenish
Copy link
Author

I've just sent you an invite to a mvp repo...

Thanks

@glennreyes
Copy link
Owner

glennreyes commented Feb 26, 2019

Hi @glenndevenish!

I only have limited time and can't look into private codebases atm. If you're still seeing the error please create an example with CodeSandbox so that also other people who are watching this issue could potentially find the problem.

Thank you!

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

2 participants