-
Notifications
You must be signed in to change notification settings - Fork 64
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
SyntaxError: Cannot use import statement outside a module #108
Comments
I've also created this Stack Overflow question: https://stackoverflow.com/questions/78118589/how-to-update-js-build-process-to-fix-syntaxerror-cannot-use-import-statement |
My temporary workaround is I've updated That caused this build error:
So I also replaced
This makes it so Sign in with Apple works locally. But it's not a great situation because it doesn't work on other machines or CI/CD without scripting the process and running it on build, which doesn't feel right to me. |
Same issue here. Any solution found? |
This is your Solution of your problem at new NodeError (node:internal/errors:406:5) |
Same issue here |
If you are using Next js, you will need to transpile the package, this is my next 14 configuration for using google and apple login
|
Describe the bug
Build fails with error:
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/johnpc/svelete-siwa-capacitor-demo && cd svelete-siwa-capacitor-demo
npm install
npm run build
Note, that reproduction repo was created as a default svelte app, using
then editing
src/routes/Header.svelte
to include usage of@capacitor-community/apple-sign-in
Expected behavior
I expect my app to build after importing this plugin
The text was updated successfully, but these errors were encountered: