-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Error while importing "__wbindgen_placeholder__"."__wbindgen_describe": unknown import. Expected Function(FunctionType { params: [I32], results: [] }) #3413
Comments
Could you try setting |
This error is printed to the console many times |
I'm not sure this is the place to ask this, probably better to figure it out in SWC, if it is a bug in |
I asked this question to the SWC developers. Unfortunately they don't answer. Why is this problem possible? I found a discussion thread with the same problem. In that case, another version of rust nightly helped. swc-project/swc#6883 I have tried this version and many others. And I will try all versions of rust. I have no other ideas :( |
Looking at swc-project/swc#6883, the problem seems more clear now. The latest release seems to have broken WASI support, which is not actually officially supported by I encourage you to bring your use-case and point of view to #3421. |
Describe the Bug
I am creating a SWC plugin for next js.
I recently started getting an error when running the plugin.
Now this error does not go away. Any recompiled plugin breaks the application. The same plugin compiled a few days ago works.
I reinstalled: cargo, rust, swc_core.
The error text brought me here. What does this error mean? Please help me understand.
In SWC they told me - check if all versions are latest. YES, but that's where their help ended.
Steps to Reproduce
I am completely following the instructions:
https://swc.rs/docs/plugin/ecmascript/getting-started
Run next js and I get an error.
The same plugin that I compiled a few days ago works in the latest version of Next js.
But everything I compile now breaks the application
Expected Behavior
The application must not break
Actual Behavior
Additional Context
I don't add anything other than the SWC starter kit. This is definitely not my fault.
I reinstalled everything except windows. I am ready to test any theory to solve the problem, and provide any information. Answer, please. I need any advice
The text was updated successfully, but these errors were encountered: