PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
8.84k stars 314 forks source link

[EXP] Error: Example with-popup not found. You may file an example request at: https://docs.plasmo.com/exp #971

Open syrup-ko opened 2 months ago

syrup-ko commented 2 months ago

What is the example you wish to see?

with-popup

Is there any context that might help us understand?

No response

Code of Conduct

tuphan-dn commented 3 weeks ago

If you are running the command on Mac Silicon the XCode may be the cause. In short, because you did not approve the Xcode license, the Nodejs process (aka. create-plasmo) cannot execute the git clone command. To fix it:

sudo xcodebuild -license

Then type agree + Enter to approve the Xcode license and try pnpm create plasmo again.

michael-freling commented 3 days ago

I got the same error and it's not on the Mac, but it's on the Ubuntu in WSL 2.

> pnpm create plasmo
🟣 Plasmo v0.88.0
🔴 The Browser Extension Framework
🟡 Extension name: try-violent-dingo
🔴 ERROR  | Example with-popup not found. You may file an example request at: https://docs.plasmo.com/exp
          | Error: Example with-popup not found. You may file an example request at: https://docs.plasmo.com/exp
    at up.createWithExample (file:///home/michael/.cache/pnpm/dlx/cnvo4e2wcoqloc4uifsf4yoara/1907eaacb1f-13b8/node_modules/.pnpm/create-plasmo@0.88.0/node_modules/create-plasmo/dist/index.js:939:12739)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async up.createBlank (file:///home/michael/.cache/pnpm/dlx/cnvo4e2wcoqloc4uifsf4yoara/1907eaacb1f-13b8/node_modules/.pnpm/create-plasmo@0.88.0/node_modules/create-plasmo/dist/index.js:939:13179)
    at async up.create (file:///home/michael/.cache/pnpm/dlx/cnvo4e2wcoqloc4uifsf4yoara/1907eaacb1f-13b8/node_modules/.pnpm/create-plasmo@0.88.0/node_modules/create-plasmo/dist/index.js:939:11431)
    at async n8e (file:///home/michael/.cache/pnpm/dlx/cnvo4e2wcoqloc4uifsf4yoara/1907eaacb1f-13b8/node_modules/.pnpm/create-plasmo@0.88.0/node_modules/create-plasmo/dist/index.js:946:418)
    at async o8e (file:///home/michael/.cache/pnpm/dlx/cnvo4e2wcoqloc4uifsf4yoara/1907eaacb1f-13b8/node_modules/.pnpm/create-plasmo@0.88.0/node_modules/create-plasmo/dist/index.js:946:949)
🔴 EXIT   | This program will terminate in 2 seconds...
🔴 EXIT   | 👋 Good bye and have a great day!

Nevermind. I needed to add my SSH private key into my SSH agent because this command depends on git CLI.