sindresorhus / p-queue

Promise queue with concurrency control
MIT License
3.48k stars 185 forks source link

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

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)

The index.js file (in the error) refs to /node_modules/p-queue/dist/index.js

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

Duplicate of #185