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

Create React App: Unhandled Rejection (TypeError): wasm.__wbindgen_add_to_stack_pointer is not a function #21

Closed
xiaohuoni opened this issue Mar 17, 2023 · 5 comments

Comments

@xiaohuoni
Copy link

image

use webpack 5

asyncWebAssembly: true,
      layers: true,
      topLevelAwait: true,

@nnmrts
Copy link

nnmrts commented Mar 19, 2023

Please reopen this, still an issue.

@dqbd dqbd reopened this Mar 19, 2023
@dqbd dqbd changed the title Unhandled Rejection (TypeError): wasm.__wbindgen_add_to_stack_pointer is not a function Create React App: Unhandled Rejection (TypeError): wasm.__wbindgen_add_to_stack_pointer is not a function Mar 19, 2023
@dqbd
Copy link
Owner

dqbd commented Mar 19, 2023

As far as I understand, the issue is contained within Create React App, is that the case @nnmrts?

@dqbd dqbd pinned this issue Mar 19, 2023
@dqbd
Copy link
Owner

dqbd commented Mar 19, 2023

@nnmrts Please follow these instructions to enable WASM support in CRA via @craco/craco:

https://github.com/dqbd/tiktoken/tree/main/js#create-react-app

@dqbd dqbd closed this as completed Mar 19, 2023
@nnmrts
Copy link

nnmrts commented Mar 19, 2023

As far as I understand, the issue is contained within Create React App, is that the case @nnmrts?

@dqbd No, I have this exact problem when using the chatgpt module through https://esm.sh/chatgpt with Deno, not using CRA at all. :/

I can provide more details later, but yeah, this is not just an issue with CRA.

@dqbd
Copy link
Owner

dqbd commented Mar 19, 2023

For Deno (Deploy) there is an existing issue #22

Repository owner deleted a comment from nnmrts Mar 19, 2023
@dqbd dqbd unpinned this issue Apr 8, 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

3 participants