Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add@vitejs/plugin-legacy,build error #3904

Open
thinke5 opened this issue Apr 1, 2025 · 0 comments
Open

add@vitejs/plugin-legacy,build error #3904

thinke5 opened this issue Apr 1, 2025 · 0 comments

Comments

@thinke5
Copy link

thinke5 commented Apr 1, 2025

Which project does this relate to?

Start

Describe the bug

import { defineConfig } from '@tanstack/solid-start/config';
import tsConfigPaths from 'vite-tsconfig-paths';
import legacy from '@vitejs/plugin-legacy';

export default defineConfig({
  tsr: {
    appDirectory: 'src',
  },
  vite: {
    plugins: [
      tsConfigPaths({
        projects: ['./tsconfig.json'],
      }),
      legacy(),
    ],
  },
});

run shell npm run build

will throw error

Image

Your Example Website or App

.

Steps to Reproduce the Bug or Issue

.

Expected behavior

not error

Screenshots or Videos

"@tanstack/solid-start": "^1.114.31"

Platform

"@tanstack/solid-start": "^1.114.31"

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants