Closed iftieaq closed 9 months ago
@iftieaq have you figured out how to make it working?
The only way I found is to make a dynamic import but we loose all possible intellisense features
const L = (eval('import('lucid-cardano')') as Promise<any>);
@iftieaq have you figured out how to make it working? The only way I found is to make a dynamic import but we loose all possible intellisense features
const L = (eval('import('lucid-cardano')') as Promise<any>);
The issue was Lucid is written as an ES module. If your project is commonjs, it will not work and throw this export warning. You will have to convert your project from commonjs to ES module in order for lucid to work (please proceed with CAUTION if you would like to do so).
I have been trying to run Lucid on my Nest.js (Nodejs framework) backend written in typescript but it seems running to an error
My tsconfig.json
Any idea how I can get this to working?