nahtnam
nahtnam
Explore posts from servers
PD🧩 Plasmo Developers
Created by nahtnam on 1/10/2023 in #👟framework
React Devtools
I built the extension, then ran a http server. It was a new tab page so it loaded fine
14 replies
PD🧩 Plasmo Developers
Created by nahtnam on 11/5/2023 in #👟framework
Tilde Import for `.mjs`
Might go back to .ts to get unblocked but the use case here is that I can also import it into .js files such as tailwind.config.js or whatever And I think .mjs also gets typed checked which is pretty cool
8 replies
PD🧩 Plasmo Developers
Created by nahtnam on 11/5/2023 in #👟framework
Tilde Import for `.mjs`
This is the library I'm using for it
8 replies
PD🧩 Plasmo Developers
Created by nahtnam on 11/5/2023 in #👟framework
Tilde Import for `.mjs`
8 replies
PD🧩 Plasmo Developers
Created by nahtnam on 11/5/2023 in #👟framework
.html relative imports
i guess i messed up when testing it
5 replies
PD🧩 Plasmo Developers
Created by nahtnam on 11/5/2023 in #👟framework
.html relative imports
Got it, /apps/dash worked after moving the assets folder to the root
5 replies
PD🧩 Plasmo Developers
Created by nahtnam on 11/5/2023 in #👟framework
.html relative imports
Seems like assets needs to be outside of the src folder according to this example. https://github.com/PlasmoHQ/examples/tree/1682da7778533fc685a3ebb0257252bc9f5f4ebe/with-src I updated to ../../, that didn't work. ~assets/ didnt work, /assets/ didnt work, and /apps/dash/assets didnt work either
5 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
I looked through the open issues but not the closed one, my bad!
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
Adding
"@parcel/resolver-default": {
"packageExports": true
}
"@parcel/resolver-default": {
"packageExports": true
}
to my package.json worked
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
Plasmo uses parcel right?
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
Empty object
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
No description
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
Yep, im honestly not even sure what to do to debug
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
I do see "type": "module", when I look through my node_modules
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
Some ESM stuff is happening, heres the full trace
logger.ts:6 Uncaught TypeError: (0 , _tslog.Logger) is not a constructor
at 337kL.@parcel/transformer-js/src/esmodule-helpers.js (logger.ts:6:9)
at newRequire (newtab.7ee8b14b.js:72:24)
at localRequire (newtab.7ee8b14b.js:85:35)
at b1OBE.@sentry/react (useUser.tsx:7:1)
at newRequire (newtab.7ee8b14b.js:72:24)
at localRequire (newtab.7ee8b14b.js:85:35)
at 1Iqrd.immer (useDemoStore.ts:14:7)
at newRequire (newtab.7ee8b14b.js:72:24)
at localRequire (newtab.7ee8b14b.js:85:35)
at f0VUA.react/jsx-dev-runtime (DemoProvider.tsx:3:1)
logger.ts:6 Uncaught TypeError: (0 , _tslog.Logger) is not a constructor
at 337kL.@parcel/transformer-js/src/esmodule-helpers.js (logger.ts:6:9)
at newRequire (newtab.7ee8b14b.js:72:24)
at localRequire (newtab.7ee8b14b.js:85:35)
at b1OBE.@sentry/react (useUser.tsx:7:1)
at newRequire (newtab.7ee8b14b.js:72:24)
at localRequire (newtab.7ee8b14b.js:85:35)
at 1Iqrd.immer (useDemoStore.ts:14:7)
at newRequire (newtab.7ee8b14b.js:72:24)
at localRequire (newtab.7ee8b14b.js:85:35)
at f0VUA.react/jsx-dev-runtime (DemoProvider.tsx:3:1)
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 8/21/2023 in #👟framework
How do I use `tslog` (esm)
Just doing
import { ILogObj, Logger } from 'tslog';

export const log: Logger<ILogObj> = new Logger({
type: 'pretty',
});
import { ILogObj, Logger } from 'tslog';

export const log: Logger<ILogObj> = new Logger({
type: 'pretty',
});
also tried import * as tslog from 'tslog'
17 replies
PD🧩 Plasmo Developers
Created by nahtnam on 7/27/2023 in #👟framework
Firefox Permissions Transform
Do I need to manually adjust my permissions?
6 replies
PD🧩 Plasmo Developers
Created by nahtnam on 7/27/2023 in #👟framework
Firefox Permissions Transform
Reading manifest: Warning processing permissions: Error processing permissions.4: Value "offscreen" must either: must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], be one of ["scripting"], or be one of ["webRequest", "webRequestBlocking", "webRequestFilterResponse", "webRequestFilterResponse.serviceWorkerScript"]], must either [be one of ["mozillaAddons"], be one of ["normandyAddonStudy"], be one of ["urlbar"], be one of ["activityLog"], be one of ["networkStatus"], or be one of ["telemetry"]], be one of ["alarms", "storage", "unlimitedStorage"], be one of ["captivePortal"], be one of ["identity"], be one of ["menus", "contextMenus"], be one of ["geckoProfiler"], be one of ["contextualIdentities"], be one of ["declarativeNetRequestWithHostAccess"], be one of ["dns"], or be one of ["theme"]], must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], be one of ["scripting"], or be one of ["webRequest", "webRequestBlocking", "webRequestFilterResponse", "webRequestFilterResponse.serviceWorkerScript"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["bookmarks"], be one of ["browsingData"], be one of ["devtools"], be one of ["find"], be one of ["history"], be one of ["pkcs11"], be one of ["sessions"], be one of ["tabs", "tabHide"], be one of ["topSites"], be one of ["browserSettings"], be one of ["declarativeNetRequestFeedback"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], or be one of ["webNavigation"]], be one of ["declarativeNetRequest"], or match the pattern /^experiments(\.\w+)+$/
Reading manifest: Warning processing permissions: Error processing permissions.4: Value "offscreen" must either: must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], be one of ["scripting"], or be one of ["webRequest", "webRequestBlocking", "webRequestFilterResponse", "webRequestFilterResponse.serviceWorkerScript"]], must either [be one of ["mozillaAddons"], be one of ["normandyAddonStudy"], be one of ["urlbar"], be one of ["activityLog"], be one of ["networkStatus"], or be one of ["telemetry"]], be one of ["alarms", "storage", "unlimitedStorage"], be one of ["captivePortal"], be one of ["identity"], be one of ["menus", "contextMenus"], be one of ["geckoProfiler"], be one of ["contextualIdentities"], be one of ["declarativeNetRequestWithHostAccess"], be one of ["dns"], or be one of ["theme"]], must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["search"], be one of ["activeTab"], be one of ["cookies"], be one of ["scripting"], or be one of ["webRequest", "webRequestBlocking", "webRequestFilterResponse", "webRequestFilterResponse.serviceWorkerScript"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["bookmarks"], be one of ["browsingData"], be one of ["devtools"], be one of ["find"], be one of ["history"], be one of ["pkcs11"], be one of ["sessions"], be one of ["tabs", "tabHide"], be one of ["topSites"], be one of ["browserSettings"], be one of ["declarativeNetRequestFeedback"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], be one of ["nativeMessaging"], or be one of ["webNavigation"]], be one of ["declarativeNetRequest"], or match the pattern /^experiments(\.\w+)+$/
6 replies