Skip to content

[Bug] Initializing a new project causing error #318

@JadWS

Description

@JadWS

Which project does this relate to?

Start

Describe the bug

Hello
I started a new project using the cli command pnpm create @tanstack/start@latest
I selected ESLint as a toolchain
I select5ed Nitro as a deployment adapter
And for add-ons i selected:

  • Neon
  • Drizzle
  • Shadcn
  • T3Env
  • Better Auth

Example:
None
Database Provider:
PostgreSQL

The project was created successfully however when i cd into it, and try the command pnpm dev
I am met with an error message
failed to load config from {DIR}\vite.config.ts error when starting dev server: file:///{DIR}/node_modules/.vite-temp/vite.config.ts.timestamp-1769850058369-7cf479491f32c.mjs:12 import postgresPlugin from "file:///{DIR}/node_modules/.pnpm/@neondatabase+vite-plugin-p_7522f09f817b7d019420e2f4f9abed0f/node_modules/@neondatabase/vite-plugin-postgres/dist/index.js"; SyntaxError: The requested module 'file:///{DIR}/node_modules/.pnpm/@neondatabase+vite-plugin-p_7522f09f817b7d019420e2f4f9abed0f/node_modules/@neondatabase/vite-plugin-postgres/dist/index.js' does not provide an export named 'default'
And indeed opening the file neon-vite-plugin.ts I have the TS error:
Module '"{DIR}/node_modules/.pnpm/@neondatabase+vite-plugin-p_7522f09f817b7d019420e2f4f9abed0f/node_modules/@neondatabase/vite-plugin-postgres/dist/index"' has no default export.

on the first import line:
import postgresPlugin from '@neondatabase/vite-plugin-postgres'

Your Example Website or App

https://github.com/JadWS/tanstack-start-init-bug

Steps to Reproduce the Bug or Issue

I am sorry all i have is a pulic repo where i just cloned what i did in my private repo
I havent yet had the chance to setup anything in the project before i got the error
All i did was change 2 values inside the .env.local
To reproduce simply clone the public repo i created and try to run it
or initliaze the project with the configs i did and you should have the same issue
I had to re-do the steps for the public repo and have the same error

Expected behavior

To run without errors

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.132.
  • OS: Windows
  • Browser: Chrome
  • Browser Version: 144.0.7559.110
  • Bundler: Vite
  • Bundler Version: latest

Additional context

No response

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