-
Notifications
You must be signed in to change notification settings - Fork 32
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
import error of CommonJS modules #53
Comments
Any idea when these templates will be working again? |
@PaulLeCam Will this be fixed with the next release of the selfId sdk? |
That seems like a setup issue, @jonathantcrawford what template is not working for you please? |
Same issue a run into, this was on nextjs template. @PaulLeCam |
i just make it worked by using require instead of direct usage of import. error import { EthereumAuthProvider, SelfID } from '@self.id/web'; no error const _web = require('@self.id/web');
const { EthereumAuthProvider, SelfID } = _web; I'm using NextJS |
Hi, I had same issue on Nextjs template. Downgrading Next@12.0.1 works for me. Or, this method may work as well. (I haven't tried it yet.)
|
@vindecodex where did you make this change in the nextjs template? |
Setting the next dependency to an explicit version worked for me. |
Still getting this error, setting nextjs dependency doesn't work for me, I still get this:
|
if you can't publish notes after upgraded to 12.0.1 you need to enable chrome://flags/#unsafely-treat-insecure-origin-as-secure |
i used nextjs |
I pushed new versions of the packages that remove the ESM setup, it works as expected for the self.id app and templates so hopefully this will fix the issues you're seeing. |
when I run
npm dev
:The text was updated successfully, but these errors were encountered: