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

Build Error #13

Open
Kulaneian opened this issue Sep 21, 2022 · 3 comments
Open

Build Error #13

Kulaneian opened this issue Sep 21, 2022 · 3 comments

Comments

@Kulaneian
Copy link

Kulaneian commented Sep 21, 2022

Hi Michele,

I absolutely love your work and have been using your cardano-wallet-interface in a nextjs app. The thing is the app would build without issues before importing this package, but since I imported the package a build error appeared. In development everything works fine, but once I run the command 'yarn run build' the build doesn't happen. Without the package the app builds without issues, but with the package it wont build. A build error like this would only appear if I had 100k static pages, but I only have 3.

Any ideas how this can be resolved?

build-error

@HarmonicPool
Copy link
Owner

Hey thank you for your time in reporting the issue; really appreciated!

Can you please include some other relevant information?

examples would be:

@Kulaneian
Copy link
Author

Kulaneian commented Sep 23, 2022

Hi Michele,

I have a small nextjs app I have as a public repo where I tried to enable browserwallets with your package. You can take a look at the lib version, next config and the dynamic import used.

Here is the repository:
https://github.com/Kulaneian/connect-wallet

What you can do is download the code and then try to build it with "yarn run build" in vscode. It gets stuck trying to build the app.

@Kulaneian
Copy link
Author

Kulaneian commented Sep 26, 2022

So the lib version for nextjs is "latest".

next config:

image

And for the dynamic import:

image

I hope that helps

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

2 participants