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

Can't import in ESM project #231

Open
uspasojevic96 opened this issue Jan 23, 2024 · 1 comment
Open

Can't import in ESM project #231

uspasojevic96 opened this issue Jan 23, 2024 · 1 comment

Comments

@uspasojevic96
Copy link

uspasojevic96 commented Jan 23, 2024

When using typescript with following config and setting "type": "module" in package.json I can't build:

{
  "compilerOptions": {
    "esModuleInterop": true,
    "module": "NodeNext",
    "moduleResolution": "NodeNext",
    "target": "es6",
    "outDir": "dist",
    "rootDir": ".",
    "sourceMap": true,
    "strict": false
  }
}
node_modules/loadtest/index.d.ts:44:1 - error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.

44 export = loadtest;
@alexfernandez
Copy link
Owner

Sorry, I don't use TypeScript myself. Care to propose a fix?

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