sindresorhus / p-queue

Promise queue with concurrency control
MIT License
3.39k stars 182 forks source link

'/node_modules/eventemitter3/index.js' does not provide an export named 'default' #184

Closed MarcelFinkbeiner closed 1 year ago

MarcelFinkbeiner commented 1 year ago

Hello,

I get the following error in one of my projects: the requested module '/node_modules/eventemitter3/index.js' does not provide an export named 'default' (at index.js:13:8)

Package version:

"p-queue": "^7.3.4",
"typescript": "^5.0.2",

TS Config:

{
  "compilerOptions": {
    "module": "ES6",
    "moduleResolution": "Node",
    "resolveJsonModule": true,
    "allowJs": true,
    "target": "ES6",
    "useDefineForClassFields": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "jsx": "preserve",
    "isolatedModules": true,
    "esModuleInterop": true,
    "lib": ["ES6", "DOM"],
    "skipLibCheck": true,
    "noEmit": true
  },
  "include": ["src"],
  "references": [{ "path": "./tsconfig.node.json" }]
}

Please let me know if you need additional inforamtion!

Best regards Marcel

sindresorhus commented 1 year ago

https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

MarcelFinkbeiner commented 1 year ago

@sindresorhus Thank you for that information. But how is that supposed to help me? The error is triggered within the p-queue module!