Facing ERR_PNPM_WORKSPACE_PKG_NOT_FOUND Error while trying with-nextjs repo from examples

examples/with-nextjs on  main is :package: 0.0.1 via ⬢ v18.16.0
➜ pnpm i
 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In : "@plasmohq/prettier-plugin-sort-imports@workspace:*" is in the dependencies but no package named "@plasmohq/prettier-plugin-sort-imports" is present in the workspace
examples/with-nextjs on  main is :package: 0.0.1 via ⬢ v18.16.0
➜ pnpm i
 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In : "@plasmohq/prettier-plugin-sort-imports@workspace:*" is in the dependencies but no package named "@plasmohq/prettier-plugin-sort-imports" is present in the workspace
No description
2 Replies
jonah
jonah•15mo ago
Try removing the package from the package.json and doing pnpm i -D @plasmohq/prettier-plugin-sort-imports (also do the same thing for the other packages that have workspace:* as the version)
lab
lab•15mo ago
if you want to use the example from github source, you will need to clone the full framework. Otherwise, do as the README in example says:
pnpm create plasmo --with-nextjs
pnpm create plasmo --with-nextjs
Want results from more Discord servers?
Add your server