+
Skip to content

vite-plugin-angular potentially breaks vite's export resolution #1847

@st3h3n

Description

@st3h3n

Please provide the environment you discovered this bug in.

vite 6+

Which area/package is the issue in?

vite-plugin-angular

Description

In vite 6 a breaking change was introduced. vite-plugin-angular did not migrate this, hence potentially causing issues as shown below.

As a workaround one can add

import { defaultClientConditions } from 'vite';
...
resolve: {
  conditions: [...defaultClientConditions]
}

to the vite config, though this does mix up the order of the lookup.

Please provide the exception or error you saw

Uncaught TypeError: Cannot destructure property '__extends' of 'import_tslib.default' as it is undefined.

and

Uncaught TypeError: import_tslib.default is undefined

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载