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

Critical dependency: require function is used in a way in which dependencies cannot be statically extracted #65

Open
thewbuk opened this issue May 1, 2024 · 0 comments

Comments

@thewbuk
Copy link

thewbuk commented May 1, 2024

Describe the bug

./node_modules/http-cookie-agent/dist/utils/validate_cookie_options.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Import trace for requested module:
./node_modules/http-cookie-agent/dist/utils/validate_cookie_options.js
./node_modules/http-cookie-agent/dist/http/create_cookie_agent.js
./node_modules/http-cookie-agent/dist/http/index.js
./node_modules/http-cookie-agent/http/index.js
./node_modules/axios-cookiejar-support/dist/index.js
./src/lib/SunoApi.ts
./src/app/api/generate_lyrics/[id]/route.ts
 ○ Compiling /api/generate_lyrics/[id] ...
{"level":30,"time":1714525558430,"pid":33656,"hostname":"vee","msg":"KeepAlive...\n"}
newToken:===

To Reproduce
Only happens occasionally; sometimes restarting or re-authenticating helps, sometimes not. Any help would be greatly appreciated.

Desktop (please complete the following information):

  • Browser [Firefox]

Result
400 Bad Request

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

1 participant