react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Failed to resolve 'p-queue' from 'notion-utils'

Open hhmy27 opened this issue 11 months ago • 1 comments

Hi, I've encountered a problem. After running the following commands:

pnpm add react-notion-x
pnpm add notion-client
pnpm add notion-utils
pnpm add p-queue

My package.json dependencies are as below:

"dependencies": {
  "notion-client": "^6.16.0",
  "notion-types": "^6.16.0",
  "notion-utils": "^6.16.0",
  "p-queue": "^8.0.1",
  "plasmo": "0.84.2",
  "react": "18.2.0",
  "react-dom": "18.2.0",
  "react-notion-x": "^6.16.0"
},

However, when I start the project, it prompts me with the following error:

🔴 ERROR  | Build failed. To debug, run plasmo dev --verbose.
🔴 ERROR  | Failed to resolve 'p-queue' from './node\_modules/.pnpm/[email protected]/node\_modules/notion-utils/build/index.js'
🔴 ERROR  | Cannot load file './index' from module 'p-queue'

I have tried many ways to install p-queue, but all attempts have failed. I've been stuck on this issue for two days. Could anyone help me figure out how to successfully install it?

hhmy27 avatar Mar 03 '24 12:03 hhmy27

What is plasmo? You shouldn't have to add any additional dependencies like p-queue, since it's included as a dependency of notion-utils (source).

transitive-bullshit avatar Mar 10 '24 19:03 transitive-bullshit