sumit
sumit
Explore posts from servers
PD🧩 Plasmo Developers
Created by sumit on 8/16/2023 in #🔰newbie
can i switch @types/chrome (unofficial) to chrome-types (official, frequent updates)
or will it cause problems if i switch?
2 replies
PD🧩 Plasmo Developers
Created by sumit on 7/16/2023 in #🔰newbie
how to stop "Context Invalidated, Press to Reload"?
It used to appear when I refreshed my extension, but after some new changes in my codebase, it seems to be appearing repeatedly without any changes in extension. I want to disable "Context Invalidated, Press to Reload". What would be a quick way (just make it disappear) to stop this, and what would be the right way (fix my codebase, but what?) to stop this?
8 replies
PD🧩 Plasmo Developers
Created by sumit on 5/28/2023 in #🔰newbie
web accessible resources extension_ids: [] is an empty array in production but present in dev
web accessible resources extension_ids: [] is an empty array in production but present in dev $CRX_ID, how to fix?
17 replies
PD🧩 Plasmo Developers
Created by sumit on 4/22/2023 in #🔰newbie
help w/ mantine notifications
i've got mantine modals working in content.tsx but notifications don't seem to work, probably not mounting them correctly. can anyone provide some help (or code) on how to use mantine notifications in content.tsx [https://mantine.dev/others/notifications/] here's the modal:
import { useState } from 'react';
import { Modal } from '@mantine/core';

export default function MyComponent() {
const [open, setOpen] = useState(false);

const handleButtonClick = () => {
setOpen(true);
}

const handleClose = () => {
setOpen(false);
}

return (
<>
<button onClick={handleButtonClick}>Open Modal</button>
<Modal
title="My Modal"
opened={open}
onClose={handleClose}
>
This is the content of my modal.
</Modal>
</>
);
}
import { useState } from 'react';
import { Modal } from '@mantine/core';

export default function MyComponent() {
const [open, setOpen] = useState(false);

const handleButtonClick = () => {
setOpen(true);
}

const handleClose = () => {
setOpen(false);
}

return (
<>
<button onClick={handleButtonClick}>Open Modal</button>
<Modal
title="My Modal"
opened={open}
onClose={handleClose}
>
This is the content of my modal.
</Modal>
</>
);
}
43 replies
PD🧩 Plasmo Developers
Created by sumit on 4/13/2023 in #👟framework
vscode error opening .plasmo/static/common/*.tsx and .plasmo/static/common/*.ts files
how do i fix these errors in .plasmo/static/content.tsx
[{
"resource": "/extensionname/.plasmo/static/content.tsx",
"owner": "typescript",
"code": "2307",
"severity": 8,
"message": "Cannot find module '@plasmo-static-common/csui' or its corresponding type declarations.",
"source": "ts",
"startLineNumber": 1,
"startColumn": 52,
"endLineNumber": 1,
"endColumn": 80
},{
"resource": "/extensionname/.plasmo/static/content.tsx",
"owner": "typescript",
"code": "2307",
"severity": 8,
"message": "Cannot find module '@plasmo-static-common/csui-container-react' or its corresponding type declarations.",
"source": "ts",
"startLineNumber": 5,
"startColumn": 8,
"endLineNumber": 5,
"endColumn": 52
},{
"resource": "/extensionname/.plasmo/static/content.tsx",
"owner": "typescript",
"code": "2307",
"severity": 8,
"message": "Cannot find module '~type' or its corresponding type declarations.",
"source": "ts",
"startLineNumber": 13,
"startColumn": 51,
"endLineNumber": 13,
"endColumn": 58
}]
[{
"resource": "/extensionname/.plasmo/static/content.tsx",
"owner": "typescript",
"code": "2307",
"severity": 8,
"message": "Cannot find module '@plasmo-static-common/csui' or its corresponding type declarations.",
"source": "ts",
"startLineNumber": 1,
"startColumn": 52,
"endLineNumber": 1,
"endColumn": 80
},{
"resource": "/extensionname/.plasmo/static/content.tsx",
"owner": "typescript",
"code": "2307",
"severity": 8,
"message": "Cannot find module '@plasmo-static-common/csui-container-react' or its corresponding type declarations.",
"source": "ts",
"startLineNumber": 5,
"startColumn": 8,
"endLineNumber": 5,
"endColumn": 52
},{
"resource": "/extensionname/.plasmo/static/content.tsx",
"owner": "typescript",
"code": "2307",
"severity": 8,
"message": "Cannot find module '~type' or its corresponding type declarations.",
"source": "ts",
"startLineNumber": 13,
"startColumn": 51,
"endLineNumber": 13,
"endColumn": 58
}]
11 replies