Closed AimHigh0601 closed 2 months ago
You seem to run the Lucid.new()
method using lucid-cardano
. I started my Cardano blockchain dev career 1 year ago. We need to enable some properties to fix the issue.
I did that with craco.config.js
by adding the following properties.
asyncWebAssembly: true,
lazyCompilation: false,
syncWebAssembly: true,
topLevelAwait: true
You have to do the same thing for lucid to work in vite app.
Thank you for your reply. I tried to use webpack loaders in vite, but it's failed.
You can't use webpack
loaders in vite
app mostly, you need to use vite
plugins instead. You can also think about local dev server migration if you have to use lucid-cardano
.
I found some links and tried them. Vite app still gives me an error, but it's another problem. This issue is solved.
As I was instantiating Lucid.new(), I got an error.
Error log:
tsconfig.json
vite.config.ts
package.json
Appreciate any help.