Skip to content

[Bug?]: exports disappear #2100

@huseeiin

Description

@huseeiin

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

ReferenceError: hello is not defined

Expected behavior 🤔

"hello"

Steps to reproduce 🕹

import type { APIHandler } from "@solidjs/start/server";

export const hello = () => "hello";

export const GET: APIHandler = async (e) => {
  return hello();
};

Context 🔦

using v2 alpha

Your environment 🌎

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions