Hey Pallas 2819 and lab

Hey @Pallas and @louisgv , Sorry to ping but I've had this issue for days.
> plasmo dev

🟣 Plasmo v0.82.3
πŸ”΄ The Browser Extension Framework
πŸ”΅ INFO | Starting the extension development server...
πŸ”΅ INFO | Loaded environment variables from: []
[1] 3820 segmentation fault pnpm run dev
> plasmo dev

🟣 Plasmo v0.82.3
πŸ”΄ The Browser Extension Framework
πŸ”΅ INFO | Starting the extension development server...
πŸ”΅ INFO | Loaded environment variables from: []
[1] 3820 segmentation fault pnpm run dev
Please do you have any idea what could be going wrong?
3 Replies
ObinnaAka
ObinnaAkaOPβ€’15mo ago
It only seems to happen when I have either a "contents" folder or a "tabs" folder. I'm running in a pnpm typescript monorepo For anyone that comes looking, I couldn't pinpoint the exact issue. I am running a monorepo with pnpm and I am importing components and functions from a "common" folder between my website and extension. I fixed it by starting from scratch and moving over the components one by one, Another thing that helped was building the "common" before importing it. So I import common from the dist/* folder instead, and update my tsconfig to match
lab
labβ€’15mo ago
hmm very weird :d... - can you try the latest one (0.82.5) - there's some dependency that I bumped that might have caused some regression (parcel-watcher is one). 0.82.5 bumped them down. seg fault generally means that there's likely a circular dependency somewhere so building out the common module and import it works well bc the independent bundler likely doesn't have to resolve the circular graph (My hunch :d...)
ObinnaAka
ObinnaAkaOPβ€’15mo ago
Ah I see, thank you very much!. I did try out 0.82.5 yesterday but still couldn't get it to work. Luckily, I've been able to port over most of the code with a fresh start anyway, so it isn't too bad. If I run into the problem again though, I'll post my finding here
Want results from more Discord servers?
Add your server