Closed allister-grange closed 4 months ago
Also tried yarn and npm, having the same symptoms, some error with the @swc/types
package.
yarn asks you to choose an option for the version, but still fails in the end
[1/4] 🔍 Resolving packages...
Couldn't find any versions for "@swc/types" that matches "workspace:^"
? Please choose a version of "@swc/types" from this list: (Use arrow keys)
❯ 0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
warning plasmo > @plasmohq/parcel-config > @parcel/config-default > @parcel/optimizer-htmlnano > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
After choosing, I get this error:
Error: Cannot find module '.../node_modules/@parcel/optimizer-swc/node_modules/@swc/core/postinstall.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
This issue occurs with @swc/core version 1.5.11. To resolve this issue:
Install @swc/core version 1.5.7:
npm install @swc/core@1.5.7
# or
yarn add @swc/core@1.5.7
# or
pnpm i @swc/core@1.5.7
If @swc/core is already installed, fix it to version 1.5.7. Remove any caret (^) if present.
"dependencies": {
"@swc/core": "1.5.7"
}
For more details, refer to the https://github.com/swc-project/swc/issues/8988
Thanks @cckn, your fix resolved the issue
May I ask how you solved it ? @allister-grange
@MarMomento I followed exactly what was said here above
This issue occurs with @swc/core version 1.5.11. To resolve this issue:
- Install @swc/core version 1.5.7:
npm install @swc/core@1.5.7 # or yarn add @swc/core@1.5.7 # or pnpm i @swc/core@1.5.7
- If @swc/core is already installed, fix it to version 1.5.7. Remove any caret (^) if present.
"dependencies": { "@swc/core": "1.5.7" }
For more details, refer to the swc-project/swc#8988
This package is in plasmo's dependencies, installing @swc/core@1.5.7 directly in the project doesn't work.
I solved it by downgrading plasmo directly to v0.80
What happened?
When running
pnpm install plasmo
, I am experiencing an error, preventing using the librarynode version: v18.20.3 pnpm version: 9.1.1 running on macOS 14.5
Please let me know if you need any more info!
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
No response
Relevant log output
(OPTIONAL) Contribution
Code of Conduct