Skip to content

ERROR Cannot find module 'config' #1181

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

Closed
jefbarn opened this issue Apr 18, 2025 · 4 comments · Fixed by #1200
Closed

ERROR Cannot find module 'config' #1181

jefbarn opened this issue Apr 18, 2025 · 4 comments · Fixed by #1200
Labels
bug Something isn't working

Comments

@jefbarn
Copy link

jefbarn commented Apr 18, 2025

On the 13.1.1 version (13.0.28 works great)

swagger-typescript-api generate --extract-request-params --extract-request-body --extract-response-error --unwrap-response-data -p http://localhost:8080/v3/api-docs -o src/app/core/generated -n swagger-api.ts

ERROR Cannot find module 'config' 7:41:31 AM
Require stack:

  • /Users/jbarnes/projects/qbit/qbit-ui/config/_index.js

    at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function.resolve (node:internal/modules/helpers:146:19)
    at jitiResolve (node_modules/jiti/dist/jiti.cjs:1:187220)
    at jitiRequire (node_modules/jiti/dist/jiti.cjs:1:189288)
    at Function.import (node_modules/jiti/dist/jiti.cjs:1:199778)
    at resolveConfig (node_modules/c12/dist/shared/c12.CEGFwQZa.mjs:365:43)
    at loadConfig (node_modules/c12/dist/shared/c12.CEGFwQZa.mjs:162:29)
    at Object.run (node_modules/swagger-typescript-api/dist/cli.js:2:6045)
    at runCommand (node_modules/citty/dist/index.mjs:316:26)
    at async runCommand (node_modules/citty/dist/index.mjs:307:11)

ERROR Cannot find module 'config'

@jefbarn
Copy link
Author

jefbarn commented Apr 18, 2025

I can work around this issue by creating a config file and using --custom-config

@smorimoto smorimoto added bug Something isn't working maybe_bug and removed bug Something isn't working labels Apr 18, 2025
@FDiskas
Copy link

FDiskas commented May 2, 2025

Have the same issue. Thanks for pointing this out - downgraded

@smorimoto
Copy link
Collaborator

Can you provide more information about your environment, such as the version of Node.js you are using? At least this is not happening in our environment.

@smorimoto
Copy link
Collaborator

OK - I found the point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants