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

[BUG] 'Example with-popup not found' when running 'npm create plasmo' #1160

Closed
2 of 3 tasks
leoddeng opened this issue Jan 18, 2025 · 12 comments
Closed
2 of 3 tasks

[BUG] 'Example with-popup not found' when running 'npm create plasmo' #1160

leoddeng opened this issue Jan 18, 2025 · 12 comments
Labels
bug Something isn't working

Comments

@leoddeng
Copy link

What happened?

I get an error when I run the “npm create plasmo” command

Version

Latest

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Chrome

Relevant log output

Plasmo v0.89.4
🔴 The Browser Extension Framework
🟡  Extension name: ss
🔴 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

(OPTIONAL) Contribution

  • I would like to fix this BUG via a PR

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@leoddeng leoddeng added the bug Something isn't working label Jan 18, 2025
@pippinmole
Copy link
Collaborator

Hi @leoddeng. Could you provide the exact command you are trying to run? It's trying to use the with-popup example which doesn't match the command you've supplied in the description (npm create plasmo)

@pippinmole pippinmole mentioned this issue Feb 9, 2025
3 tasks
@pippinmole pippinmole changed the title [BUG] [BUG] 'Example with-popup not found' when running 'npm create plasmo' Feb 9, 2025
@BalutaAlex
Copy link
Contributor

BalutaAlex commented Feb 9, 2025

Funny enough I encountered the same issue when I was setting up my virtual machine (ubuntu), and trying to use pnpm create plasmo --with-popup, the issue was that I forgot to install git, this may or may not be related to this issue, but it is a case that triggers this error, I think in this case, the error makes sense. Attached screenshot of the error.

Image

@pippinmole
Copy link
Collaborator

Funny enough I encountered the same issue when I was setting up my virtual machine (ubuntu), and trying to use pnpm create plasmo --with-popup, the issue was that I forgot to install git, this may or may not be related. Attached screenshot of the error. In my case, the error makes sense

Image

If you install Git and try again, what happens?

@BalutaAlex
Copy link
Contributor

Funny enough I encountered the same issue when I was setting up my virtual machine (ubuntu), and trying to use pnpm create plasmo --with-popup, the issue was that I forgot to install git, this may or may not be related. Attached screenshot of the error. In my case, the error makes sense
Image

If you install Git and try again, what happens?

It works. I am not sure how create plasmo -with-xxx command works, but I guess it tries to grab the example using git, so not having it installed locally throws this error. I would have to check the actual function to make sure this is the case

@BalutaAlex
Copy link
Contributor

Funny enough I encountered the same issue when I was setting up my virtual machine (ubuntu), and trying to use pnpm create plasmo --with-popup, the issue was that I forgot to install git, this may or may not be related. Attached screenshot of the error. In my case, the error makes sense
Image

If you install Git and try again, what happens?

It works. I am not sure how create plasmo -with-xxx command works, but I guess it tries to grab the example using git, so not having it installed locally throws this error. I would have to check the actual function to make sure this is the case

Weird, looks like missing git should have triggered a different error message, it might be caught somewhere else where this error is suppressed and the original error message is lost, I might try to debug this

https://github.com/PlasmoHQ/plasmo/blob/eb08d6a86ac421d292b966c0a3ece07db54ab145/cli/plasmo/src/features/project-creator/index.ts#L119C3-L141C6

@pippinmole
Copy link
Collaborator

I'll make a PR to fix the error message being unclear, however I think for now it might be a requirement to have Git installed in the PATH. Other cli tools (such as create-next-app don't have this dependency so it's definitely doable)

@pippinmole
Copy link
Collaborator

The error message is now clearer. Thank you for reporting :)

Image

@kiccer
Copy link

kiccer commented Feb 21, 2025

I encountered the same error, and it remains unresolved.

@BalutaAlex
Copy link
Contributor

I encountered the same error, and it remains unresolved.

Hi! Can you run again the command using --verbose flag and show the logs?

@kiccer
Copy link

kiccer commented Feb 21, 2025

I encountered the same error, and it remains unresolved.

Hi! Can you run again the command using --verbose flag and show the logs?

Image

The error is the same as when --verbose is not added.

@BalutaAlex
Copy link
Contributor

I encountered the same error, and it remains unresolved.

Hi! Can you run again the command using --verbose flag and show the logs?

Image

The error is the same as when --verbose is not added.

Thank you for the response! Can you also share the versions for node and pnpm?

@kiccer
Copy link

kiccer commented Feb 21, 2025

Thank you for the response! Can you also share the versions for node and pnpm?

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants