Skip to content

[Dev Tools Feature Request] source maps do not point to the right line #82

@Talor-A

Description

@Talor-A

Screen Shot 2021-10-17 at 12 11 06 PM

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>
  );
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdev toolsDev tools (CLI, Manage Extensions, npm, etc)status: fixed in next releaseThe issue will be closed once next release is available

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions