SWC not resolving

Realized I should have probably put this here. I had been using CRXjs, but recent chrome updates have made that extension framework unusable. Working on learning plasmo so I can convert my project to it. Trying to setup a basic options page example following the with-options example. When I run plasmo dev, I get the following:
🟣 Plasmo v0.89.3
πŸ”΄ The Browser Extension Framework
πŸ”΅ INFO | Starting the extension development server...
πŸ”΅ INFO | Building for target: chrome-mv3
πŸ”΅ INFO | Loaded environment variables from: []
πŸ”΄ ERROR | Build failed. To debug, run plasmo dev --verbose.
πŸ”΄ ERROR | Could not resolve module "@swc/types" from "E:\\Git\\Sigil\\1\_Tools\\sigil-roll20-conversion-suite\\withplasmo\\node\_modules\\@plasmohq\\parcel-optimizer-es\\node\_modules\\@swc\\core\\index.js"
🟣 Plasmo v0.89.3
πŸ”΄ The Browser Extension Framework
πŸ”΅ INFO | Starting the extension development server...
πŸ”΅ INFO | Building for target: chrome-mv3
πŸ”΅ INFO | Loaded environment variables from: []
πŸ”΄ ERROR | Build failed. To debug, run plasmo dev --verbose.
πŸ”΄ ERROR | Could not resolve module "@swc/types" from "E:\\Git\\Sigil\\1\_Tools\\sigil-roll20-conversion-suite\\withplasmo\\node\_modules\\@plasmohq\\parcel-optimizer-es\\node\_modules\\@swc\\core\\index.js"
What is causing swc to not resolve correctly?
4 Replies
Avi
Aviβ€’5w ago
@lab know the culprit?
lab
labβ€’5w ago
hmm has this been around for a while?? Not sure how the swc/types package get in :-?....
Kurohyou
KurohyouOPβ€’4w ago
No idea, but I am unable to get any of the examples or my own code to work. They all give this error.
Avi
Aviβ€’2w ago
You should definitely ping whomever you're talking to because Louis (lab) is a busy dude
Want results from more Discord servers?
Add your server