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

Module not found: Can't resolve '@dqbd/tiktoken' in '/vercel/path0/node_modules/chatgpt/build' #429

Closed
2 tasks done
jessemoe opened this issue Mar 4, 2023 · 2 comments
Closed
2 tasks done

Comments

@jessemoe
Copy link

jessemoe commented Mar 4, 2023

Verify latest release

  • I verified that the issue exists in the latest chatgpt release

Verify webapp is working

  • I verify that the ChatGPT webapp is working properly for this account.

Environment details

vercel build environment

Describe the Bug

when I build my demo in vercel it always build fail.
Module not found: Can't resolve '@dqbd/tiktoken' in '/vercel/path0/node_modules/chatgpt/build'

@transitive-bullshit
Copy link
Owner

This may be related: #413

@dqbd/tiktoken uses WASM, which may not be handled correctly in some environments. Can you give me as much detail about your "vercel build environment" as possible? e.g., is it a serverless function or edge function? Is this from next.js and if so, what version? Are you using appDir? etc.

@jessemoe
Copy link
Author

jessemoe commented Mar 4, 2023

Thanks. I know that the problem is this api can only run in node.js client not in browser

@jessemoe jessemoe closed this as completed Mar 4, 2023
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