sumit
sumit
Explore posts from servers
CDCloudflare Developers
Created by sumit on 8/8/2024 in #pages-help
why high ping on pages?
ping from india on mywebsite.com is 140ms average while on mywebsite.pages.dev is 14ms what could be the reason and how to troubleshoot? ping from most other locations is good (sub 10ms) p.s.: mywebsite.com is a placeholder name for my actual domain name.
80 replies
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
CDCloudflare Developers
Created by sumit on 7/24/2023 in #pages-help
pages build error
pages deployment failing, what could be wrong?
Executing user command: next build && next export
03:38:26.456 /opt/buildhome/repo/node_modules/next/dist/build/index.js:440
03:38:26.457 ...pageKeys.app ?? []
03:38:26.457 ^
03:38:26.457
03:38:26.458 SyntaxError: Unexpected token '?'
03:38:26.458 at wrapSafe (internal/modules/cjs/loader.js:1054:16)
03:38:26.458 at Module._compile (internal/modules/cjs/loader.js:1102:27)
03:38:26.458 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
03:38:26.458 at Module.load (internal/modules/cjs/loader.js:986:32)
03:38:26.458 at Function.Module._load (internal/modules/cjs/loader.js:879:14)
03:38:26.458 at Module.require (internal/modules/cjs/loader.js:1026:19)
03:38:26.458 at require (internal/modules/cjs/helpers.js:72:18)
03:38:26.458 at Object.<anonymous> (/opt/buildhome/repo/node_modules/next/dist/cli/next-build.js:15:55)
03:38:26.459 at Module._compile (internal/modules/cjs/loader.js:1138:30)
03:38:26.459 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
03:38:26.465 Failed: build command exited with code: 1
03:38:27.532 Failed: error occurred while running build command
Executing user command: next build && next export
03:38:26.456 /opt/buildhome/repo/node_modules/next/dist/build/index.js:440
03:38:26.457 ...pageKeys.app ?? []
03:38:26.457 ^
03:38:26.457
03:38:26.458 SyntaxError: Unexpected token '?'
03:38:26.458 at wrapSafe (internal/modules/cjs/loader.js:1054:16)
03:38:26.458 at Module._compile (internal/modules/cjs/loader.js:1102:27)
03:38:26.458 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
03:38:26.458 at Module.load (internal/modules/cjs/loader.js:986:32)
03:38:26.458 at Function.Module._load (internal/modules/cjs/loader.js:879:14)
03:38:26.458 at Module.require (internal/modules/cjs/loader.js:1026:19)
03:38:26.458 at require (internal/modules/cjs/helpers.js:72:18)
03:38:26.458 at Object.<anonymous> (/opt/buildhome/repo/node_modules/next/dist/cli/next-build.js:15:55)
03:38:26.459 at Module._compile (internal/modules/cjs/loader.js:1138:30)
03:38:26.459 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
03:38:26.465 Failed: build command exited with code: 1
03:38:27.532 Failed: error occurred while running build command
4 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