-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
bugSomething isn't workingSomething isn't workingdev toolsDev tools (CLI, Manage Extensions, npm, etc)Dev tools (CLI, Manage Extensions, npm, etc)status: fixed in next releaseThe issue will be closed once next release is availableThe issue will be closed once next release is available
Description
Raycast version: 1.25.0
Describe the feature and the current behavior/state.
it appears the error message does not point to the correct line when there is an error on my extension. the message is correct (channels?.map is not a function) but points to a different line. here is the full file content:
// channels.tsx
import { List, ListItem } from "@raycast/api";
import { useChannels } from "./hooks/useChannels";
import { useProfile } from "./hooks/useProfile";
import { prefs } from "./util/preferences";
export default function Command() {
const { data: user, error } = useProfile(prefs().accesstoken);
const { data: channels } = useChannels(prefs().accesstoken, user?.id);
return (
<List isLoading={!channels}>
{channels?.map((chan) => (
<ListItem key={chan.id} title={chan.title} subtitle={`${chan.length} blocks`} />
))}
</List>
);
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdev toolsDev tools (CLI, Manage Extensions, npm, etc)Dev tools (CLI, Manage Extensions, npm, etc)status: fixed in next releaseThe issue will be closed once next release is availableThe issue will be closed once next release is available
