-
Notifications
You must be signed in to change notification settings - Fork 66
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 with plugin initialization and import: capacitorExports is not defined #92
Comments
Having the same issue |
same issues with next js build |
Same issues with next js build |
here as well. |
In my case this was caused by an issue with the ESM module version. If you explicitly load the commonJS version, it seems to be working fine.
Note that I'm using the Capgo fork, but might work with the capacitor-community version as well |
Having the same issue, |
can you provide a sample app? I can't reproduce |
Describe the bug
A clear and concise description of what the bug is.
Initialization of plugin and importing NativeAudio throws an error
ReferenceError: capacitorExports is not defined
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Plugin and methods get imported, methods able to be used to load the audio.
-Web, iOS, and Android
Additional context
I removed the NativeAudio.preload code and it still crashed. I removed the import and the error went away. Using NextJS 12.
The text was updated successfully, but these errors were encountered: