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

New project from with-nextjs template build fails with @expo+spawn-async module not found [BUG] #1006

Open
reedjones opened this issue Jun 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@reedjones
Copy link

What happened?

A bug happened!
similar to #1005

Creating new project from the with-nextjs template, running pnpm dev and/or build fails with error @expo+spawn-async module not found

Version

Latest

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

No response

Relevant log output

Error: Cannot find package 'C:\Users\reedjones\projects\aproject\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected]__@[email protected][email protected]_postcss_ixtk6kqqre7ufn5wc7sfmsvufe\node_modules\@expo\spawn-async\package.json' imported from C:\Users\reedjones\projects\aproject\node_modules\.pnpm\p[email protected]_@[email protected]_@[email protected]__@[email protected][email protected]_postcss_ixtk6kqqre7ufn5wc7sfmsvufe\node_modules\plasmo\dist\index.js
Did you mean to import @[email protected]/node_modules/@expo/spawn-async/build/spawnAsync.js?
    at legacyMainResolve (node:internal/modules/esm/resolve:213:26)     
    at packageResolve (node:internal/modules/esm/resolve:831:14)        
    at moduleResolve (node:internal/modules/esm/resolve:901:20)
    at defaultResolve (node:internal/modules/esm/resolve:1121:11)       
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)   
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v21.5.0
 ELIFECYCLE  Command failed with exit code 1.
   ▲ Next.js 14.1.0


### (OPTIONAL) Contribution

- [ ] I would like to fix this BUG via a PR

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct
- [X] I checked the [current issues](https://github.com/PlasmoHQ/plasmo/issues?q=is%3Aopen+is%3Aissue+label%3Abug) for duplicate problems.
@reedjones reedjones added the bug Something isn't working label Jun 20, 2024
@reedjones
Copy link
Author

reedjones commented Jun 20, 2024

I was able to solve using solution here:
vercel/next.js#48593 (comment)

"pnpm": {
  "overrides": {
    "@swc/helpers@~0.4": "0.4.36"
  }
}

@dougwithseismic
Copy link

Potentially fixed by moving to pnpm 9.4.0 (released a few days ago). No guarantee though, I tried a load today! #1005 (comment)

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

2 participants