You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected: a string with the resolved path (this is how it worked in React)
Actual: The object is returned, which causes my script to fail with Uncaught TypeError: path?.startsWith is not a function. The typescript types say it's supposed to be a string, so I assume this is a bug in the resolver.
Version
Latest
What OS are you seeing the problem on?
Windows, Linux
What browsers are you seeing the problem on?
Chrome, Microsoft Edge
Relevant log output
<script lang="ts">
import azureXrayPanel from "url:./panels/azure-xray/index.svelte"
import logo from "url:~/assets/icon.png"
import { fixChromePath } from "./util";
chrome.devtools.panels.create(
"Azure XRay",
fixChromePath(logo),
fixChromePath(azureXrayPanel),
)
</script><div><h2>
This is a bootstrapper for devtools panels. It is never displayed directly.
</h2></div>
What happened?
Tried switching from react to svelte, which is stated as supported.
https://github.com/JustinGrote/azure-xray/tree/experiment/svelte
plasmo dev completes successfuly, but:
Expected: a string with the resolved path (this is how it worked in React)
Actual: The object is returned, which causes my script to fail with
Uncaught TypeError: path?.startsWith is not a function
. The typescript types say it's supposed to be a string, so I assume this is a bug in the resolver.Version
Latest
What OS are you seeing the problem on?
Windows, Linux
What browsers are you seeing the problem on?
Chrome, Microsoft Edge
Relevant log output
(OPTIONAL) Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: