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

Should this be ESM or CommonJS? #202

Open
metaproph3t opened this issue Aug 12, 2024 · 1 comment
Open

Should this be ESM or CommonJS? #202

metaproph3t opened this issue Aug 12, 2024 · 1 comment

Comments

@metaproph3t
Copy link
Member

It appears that this package is CommonJS - is that intentional?

@R-K-H
Copy link
Member

R-K-H commented Aug 18, 2024

Use this config in your client and make sure you don't have "type": "module", in your package.json. Then it works.

{
  "compilerOptions": {
    "strict": true,
    "esModuleInterop": true,
    "lib": ["ESNext"],
    "resolveJsonModule": true,
    "strictNullChecks": true,
    "forceConsistentCasingInFileNames": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
     "module": "ESNext",
    "target": "ESNext",
    "moduleResolution": "bundler",
    "types": ["node", "bun-types", "inquirer"]
  }
}

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