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

No "exports" main defined while using lucid-cardano with typescript. #242

Open
golddydev opened this issue Feb 20, 2024 · 1 comment
Open

Comments

@golddydev
Copy link

I got this error.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /home/my_project/node_modules/lucid-cardano/package.json

My project is based on typescript and tsconfig-path.
Here is my tsconfig.

{
  "compilerOptions": {
    "target": "ES2022",
    "allowJs": true,
    "esModuleInterop": true,
    "module": "commonjs",
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "skipLibCheck": true,
    "skipDefaultLibCheck": true,
    "declaration": true,
    "sourceMap": false,
    "paths": {
      "@/*": ["src/*"],
    },
    "outDir": "./dist",
    "rootDir": "./src",
    "baseUrl": ".",
    "forceConsistentCasingInFileNames": true,
    "resolveJsonModule": true,
    "checkJs": false,
  },
  "include": ["src/"],
  "exclude": ["node_modules", "./src/contracts"],
}

Can you help me with this issue?

@MatiFalcone
Copy link

Getting the same error but in a Node.js application.

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