Skip to content

Hero CLI next app importing issue #160

@arjunkambj

Description

@arjunkambj

I'm working on two different setups:

Left Side (Next App): Created using "pnpm create next-app".

Right Side (Hero UI App): Created using the HeroUI CLI.

Both setups have "node_modules" and include the @convex-dev/auth package. However, there's a problem:

In the HeroUI app, I'm unable to import anything from the dist folder inside @convex-dev/auth — even though the files clearly exist there.

This issue has occurred in two scenarios:

  1. When using Civic Auth earlier.,
  2. Now again with Convex Auth.,

In contrast, everything works fine in the standard Next app (left side).

I've highlighted the problem area in the screenshots:
In the HeroUI project, importing ConvexAuthNextjsServerProvider from @convex-dev/auth/nextjs/server fails, while it works fine in the Next app setup.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions