Project won't re-package

I have projects A and B When I pnpm dev --verbose in B, it works fine When I pnpm dev --verbose in A, it's stuck on
๐ŸŸก 16 | Starting dev server on 1012, HMR on 1815...
๐ŸŸก 0 | @plasmohq/parcel-transformer-manifest
๐ŸŸก 1 | Adding icons
๐ŸŸก 2 | Adding default_icon
๐ŸŸก 3 | Adding default_popup
๐ŸŸก 4 | Handling background service worker
๐ŸŸก 16 | Starting dev server on 1012, HMR on 1815...
๐ŸŸก 0 | @plasmohq/parcel-transformer-manifest
๐ŸŸก 1 | Adding icons
๐ŸŸก 2 | Adding default_icon
๐ŸŸก 3 | Adding default_popup
๐ŸŸก 4 | Handling background service worker
Both are using a forked version of Plasmo 0.61.2 The weird thing is that project A had previously worked fine, whereas project B did not work as I wanted it to work
31 Replies
lab
labโ€ข2y ago
are both of them running at the same time? ;d
Avi
AviOPโ€ข2y ago
Even if they don't, project A is still stuck
lab
labโ€ข2y ago
try killing all nodes process and see if it run, on a side note - what was the last diff that lead to it not running?
Avi
AviOPโ€ข2y ago
what was the last diff that lead to it not running?
You mean on the Plasmo side? I tried to add and them removed a console.log On project A, nothing was added Just tried killing node.exe, still facing the same issue
Avi
AviOPโ€ข2y ago
@louis After investigating, it seems like project A is stuck on https://github.com/PlasmoHQ/plasmo/blob/340f38d200963ea9337a552c1cb4a9d904b7e313/cli/plasmo/src/commands/dev.ts#L55 No error; it simply pauses on bundler.watch
GitHub
plasmo/dev.ts at 340f38d200963ea9337a552c1cb4a9d904b7e313 ยท PlasmoH...
๐Ÿงฉ The Browser Extension Framework. Contribute to PlasmoHQ/plasmo development by creating an account on GitHub.
lab
labโ€ข2y ago
It doesn't run anything after that line?
Avi
AviOPโ€ข2y ago
Nope, specifically in project A In project B it runs as usual
lab
labโ€ข2y ago
try remove the .plasmo directory and rerun
Avi
AviOPโ€ข2y ago
Didn't work It did proceed to
๐ŸŸ  WARN | Plasmo version file not found, busting cache...
๐ŸŸ  WARN | Plasmo version file not found, busting cache...
but that's about it
lab
labโ€ข2y ago
if you put a console.log at the bottom of the dev fx does it log anything at all?
Avi
AviOPโ€ข2y ago
If I log at 101, it does log
Avi
AviOPโ€ข2y ago
lab
labโ€ข2y ago
yeah so it means it run past that stuff so what's happening now seems like an issue within whatever is running the framework how's the .plasmo directory compared to B?
Avi
AviOPโ€ข2y ago
Project B
Avi
AviOPโ€ข2y ago
Project A
Avi
AviOPโ€ข2y ago
YouTube Like-Dislike Shortcut used to work, I have no idea why it stopped compiling properly
lab
labโ€ข2y ago
and no build was produced for the like-dislike? hmmmmm can you check the content of the plasmo.manifest file and see if there's anything weird between them also note the version at the beginning when dev runs
Avi
AviOPโ€ข2y ago
{
"icons": {
"16": "./gen-assets/icon16.plasmo.png",
"32": "./gen-assets/icon32.plasmo.png",
"48": "./gen-assets/icon48.plasmo.png",
"64": "./gen-assets/icon64.plasmo.png",
"128": "./gen-assets/icon128.plasmo.png"
},
"manifest_version": 3,
"action": {
"default_icon": {
"16": "./gen-assets/icon16.plasmo.png",
"32": "./gen-assets/icon32.plasmo.png",
"48": "./gen-assets/icon48.plasmo.png",
"64": "./gen-assets/icon64.plasmo.png",
"128": "./gen-assets/icon128.plasmo.png"
},
"default_popup": "./popup.html"
},
"version": "1.5.7",
"author": "avi12 <[email protected]>",
"name": "DEV | ",
"description": "Like videos with Shift+Plus or Numpad Plus, dislike with Shift+Minus or Numpad Minus.",
"homepage_url": "https://avi12.com/youtube-like-dislike-shortcut",
"permissions": [
"storage"
],
"content_scripts": [
{
"matches": [
"https://www.youtube.com/*"
],
"js": [
"..\\src\\contents\\content-script-youtube-rate-trigger.ts"
]
},
{
"matches": [
"https://www.youtube.com/*"
],
"js": [
"static\\contents\\content-script-auto-like.ts"
]
}
]
}
{
"icons": {
"16": "./gen-assets/icon16.plasmo.png",
"32": "./gen-assets/icon32.plasmo.png",
"48": "./gen-assets/icon48.plasmo.png",
"64": "./gen-assets/icon64.plasmo.png",
"128": "./gen-assets/icon128.plasmo.png"
},
"manifest_version": 3,
"action": {
"default_icon": {
"16": "./gen-assets/icon16.plasmo.png",
"32": "./gen-assets/icon32.plasmo.png",
"48": "./gen-assets/icon48.plasmo.png",
"64": "./gen-assets/icon64.plasmo.png",
"128": "./gen-assets/icon128.plasmo.png"
},
"default_popup": "./popup.html"
},
"version": "1.5.7",
"author": "avi12 <[email protected]>",
"name": "DEV | ",
"description": "Like videos with Shift+Plus or Numpad Plus, dislike with Shift+Minus or Numpad Minus.",
"homepage_url": "https://avi12.com/youtube-like-dislike-shortcut",
"permissions": [
"storage"
],
"content_scripts": [
{
"matches": [
"https://www.youtube.com/*"
],
"js": [
"..\\src\\contents\\content-script-youtube-rate-trigger.ts"
]
},
{
"matches": [
"https://www.youtube.com/*"
],
"js": [
"static\\contents\\content-script-auto-like.ts"
]
}
]
}
lab
labโ€ข2y ago
hmm beside no name it seems to be fine :d..... also it went to the step of generating the manifest and the whole build directory so I suspect the issue lies downstream somewhere ?....
Avi
AviOPโ€ข2y ago
If you really want, I can temporarily push it to GitHub
lab
labโ€ข2y ago
yee that'd be great, I can try tinkering with it
Avi
AviOPโ€ข2y ago
You know what, I will push it to GitHub as a private repo and grant you access
lab
labโ€ข2y ago
aight
Avi
AviOPโ€ข2y ago
Pending invite
lab
labโ€ข2y ago
๐Ÿ‘
Avi
AviOPโ€ข2y ago
@louis Do you have a projection when you're going to inspect the code to see what went wrong? It seems like the issue was about having svelte-preprocess and sass as dev deps rather than deps
lab
labโ€ข2y ago
ayo just got out - so does it work if you move them to deps? generally for extension it doesn't matter much anyway, since the bundler will take whatever is available
Avi
AviOPโ€ข2y ago
Seems like so
lab
labโ€ข2y ago
I haven't gotten a chance to look at your project yet mb xd been on call since last night and also fixing up some weird polyfill issue so I've been running on like 3-4hr of crashin xd
Avi
AviOPโ€ข2y ago
lol Anyway, my whole goal of getting YouTube Like-Dislike Shortcut to work is to compare the broken Steam ID Finder (<Content> was not found or something), see why it happens and work it out such that the Steam ID Finder code will just work If I could actually place breakpoints in WebStorm, it could potentially be faster, but I guess I have to rely on console.logs
lab
labโ€ข2y ago
yeee xd
Want results from more Discord servers?
Add your server