-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
next 13 and lucid #228
Comments
This is what I used to get it working. Just got it up and running. https://jser.dev/2023-07-25-how-lazy-works-internally/ you will have to define your own delay class, but wrap the class that contains Lucid inside of the "LazyComponent" |
Same issue... There are any solution without using LazyComponents? I have this context
And i import use di provider like this:
If i try to use
|
hello there !
I hope some one can help me.
I been using lucid in next js 12 without problems, but now my site migrated to next 13.
I dont know how to make it work, site build breaks with this messages:
'''Error occurred prerendering page "/". Read more:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.'''
I already have working lucid with next js 12 with:
'''webpack: (config) => {
config.stats = 'verbose'; // or 'errors-only', 'minimal', etc.
config.resolve.alias['react-native-sqlite-storage'] = false;
config.experiments = {
asyncWebAssembly: true,
topLevelAwait: true,
layers: true, // optional, with some bundlers/frameworks it doesn't work without
}
return config
},
'''
If i comment the use of lucid, site builds
And if i use some parts of lucid, site builds
But for example when trying to import Emulator, site breaks as i shown before
'''import { Assets, Emulator } from "lucid-cardano";
const emulator = new Emulator([]);''''
It works for Assets for example, but not for Emulator class
I would appreciated any help
Does anybody have a full functional lucid-cardano setup for next js 13?
Regards!
The text was updated successfully, but these errors were encountered: