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

[EXP] pnpm create project error with with-src #327

Closed
2 tasks done
Lmmmmmm-bb opened this issue Dec 6, 2022 · 10 comments
Closed
2 tasks done

[EXP] pnpm create project error with with-src #327

Lmmmmmm-bb opened this issue Dec 6, 2022 · 10 comments
Labels
documentation Improvements or additions to documentation

Comments

@Lmmmmmm-bb
Copy link

What is the example you wish to see?

I would like to create a project with src.

Is there any context that might help us understand?

pnpm version is v7.18.1.

The following error message is available.

🟣 Plasmo v0.59.3
🔴 The Browser Extension Framework
🟡 Extension name: x-header
🔵 INFO   | Creating new project with src
🔴 ERROR  | Example with-src not found. You may file an example request at: https://docs.plasmo.com/exp
          | Error: Example with-src not found. You may file an example request at: https://docs.plasmo.com/exp
    at Oh.createWith (file:///C:/Users/_lmmmmmm/AppData/Local/pnpm/store/v3/tmp/dlx-22220/node_modules/.pnpm/create-plasmo@0.59.3/node_modules/create-plasmo/dist/index.js:952:64047)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Oh.create (file:///C:/Users/_lmmmmmm/AppData/Local/pnpm/store/v3/tmp/dlx-22220/node_modules/.pnpm/create-plasmo@0.59.3/node_modules/create-plasmo/dist/index.js:952:63199)
    at async MAe (file:///C:/Users/_lmmmmmm/AppData/Local/pnpm/store/v3/tmp/dlx-22220/node_modules/.pnpm/create-plasmo@0.59.3/node_modules/create-plasmo/dist/index.js:959:421)
    at async UAe (file:///C:/Users/_lmmmmmm/AppData/Local/pnpm/store/v3/tmp/dlx-22220/node_modules/.pnpm/create-plasmo@0.59.3/node_modules/create-plasmo/dist/index.js:959:994)
🔴 EXIT   | 👋 Good bye and have a great day!
 ERROR  Command failed with exit code 1: C:\Users\_lmmmmmm\AppData\Local\pnpm\store\v3\tmp\dlx-22220\node_modules\.bin\create-plasmo.CMD --with-src

pnpm: Command failed with exit code 1: C:\Users\_lmmmmmm\AppData\Local\pnpm\store\v3\tmp\dlx-22220\node_modules\.bin\create-plasmo.CMD --with-src
    at makeError (D:\MySoftware\nodejs\node_global\node_modules\pnpm\dist\pnpm.cjs:22852:17)
    at handlePromise (D:\MySoftware\nodejs\node_global\node_modules\pnpm\dist\pnpm.cjs:23423:33)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.handler (D:\MySoftware\nodejs\node_global\node_modules\pnpm\dist\pnpm.cjs:202461:7)
    at async D:\MySoftware\nodejs\node_global\node_modules\pnpm\dist\pnpm.cjs:209903:21
    at async main (D:\MySoftware\nodejs\node_global\node_modules\pnpm\dist\pnpm.cjs:209874:34)
    at async runPnpm (D:\MySoftware\nodejs\node_global\node_modules\pnpm\dist\pnpm.cjs:210100:5)
    at async D:\MySoftware\nodejs\node_global\node_modules\pnpm\dist\pnpm.cjs:210092:7

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@Lmmmmmm-bb Lmmmmmm-bb added the documentation Improvements or additions to documentation label Dec 6, 2022
@ColdSauce
Copy link
Contributor

Hi @Lmmmmmm-bb thanks for filing an issue! Excited to see what you build with Plasmo!

I can't seem to reproduce this bug locally.

The command I ran was the following:

pnpm create plasmo --with-src

It seems like this was the command you also ran, right? (Judging from the output you pasted)

Does this happen with all the other examples? (with-tailwindcss, etc) or just with with-src?

There were others who had issues and it was because something was blocking GitHub. Is that something that could be happening here?

@Lmmmmmm-bb
Copy link
Author

Hi @ColdSauce. Sorry to reply now, I tried with-tailwindcss and I get the same error.
But when I use pnpm create plasmo I can create the project normally, I don't know if it's an environment problem.
The following is my environment.

System: Windows 11
pnpm: 7.18.1
node: v18.12.1

Currently I am using pnpm create plasmo to replace pnpm create plasmo --with-src create project.

@louisgv
Copy link
Contributor

louisgv commented Dec 11, 2022

I wonder if this is due to node v18... #328 Maybe the arg passing down is diff now? xd

@payamsaremi
Copy link

I get this on all the examples. :(
SyntaxError: missing ) after argument list at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)  ELIFECYCLE  Command failed with exit code 1.

@louisgv
Copy link
Contributor

louisgv commented Dec 21, 2022

@payamsaremi are you using node 18?

@payamsaremi
Copy link

payamsaremi commented Dec 21, 2022 via email

@Lmmmmmm-bb
Copy link
Author

Lmmmmmm-bb commented Dec 21, 2022

No, I'm using Node 14

Message ID: @.***>

Maybe you should update node version to v16.14.x or later.

about system requirement

@payamsaremi
Copy link

I did update to node v18.12.1 , Im still getting an error when I run pnpm dev after pnpm create plasmo with-content-script
`dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
ib/libvips-cpp.42.dylib
Expected in: /usr/lib/libSystem.B.dylib

 ELIFECYCLE  Command failed.
Abort trap: 6`

@northsea4
Copy link

Same problem as @payamsaremi

macOS: 10.15.7
node: v16.18.0

➜  plasmo-001 git:(master) ✗ npm run dev

> plasmo-001@0.0.0 dev
> plasmo dev

dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Users/hello/dev/chrome-extension/plasmo-001/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Users/hello/dev/chrome-extension/plasmo-001/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

[1]    12064 abort      npm run dev

@louisgv
Copy link
Contributor

louisgv commented Jan 18, 2023

This is fixed with #375

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

5 participants