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

The following error is encountered in TS #2

Closed
BillyPhilosophy opened this issue Oct 31, 2023 · 5 comments
Closed

The following error is encountered in TS #2

BillyPhilosophy opened this issue Oct 31, 2023 · 5 comments

Comments

@BillyPhilosophy
Copy link

Parameter of type "({ mode }: ConfigEnv) => { plugins: (Plugin_2 | PluginOption)[]; resolve: { alias: { '@': string; }; }; server: { hmr: true; host: string; port: number; proxy: { '/api': { target: string; changeOrigin: true; rewrite: (path: string) => string; }; }; }; base: string; build: { ...; }; }" cannot be assigned to type "UserConfigExport".
Cannot assign type "({ mode }: ConfigEnv) => { plugins: (Plugin_2 | PluginOption)[]; resolve: { alias: { '@': string; }; }; server: { hmr: true; host: string; port: number; proxy: { '/api': { target: string; changeOrigin: true; rewrite: (path: string) => string; }; }; }; base: string; build: { ...; }; }" to type "UserConfigFn".
Cannot assign type "{ plugins: (Plugin_2 | PluginOption)[]; resolve: { alias: { '@': string; }; }; server: { hmr: true; host: string; port: number; proxy: { '/api': { target: string; changeOrigin: true; rewrite: (path: string) => string; }; }; }; base: string; build: { ...; }; }" to type "UserConfig | Promise".
Cannot assign type "{ plugins: (Plugin_2 | PluginOption)[]; resolve: { alias: { '@': string; }; }; server: { hmr: true; host: string; port: number; proxy: { '/api': { target: string; changeOrigin: true; rewrite: (path: string) => string; }; }; }; base: string; build: { ...; }; }" to type "UserConfig".
The property "plugins" is incompatible.
Cannot assign type "(Plugin_2 | PluginOption)[]" to type "PluginOption[]".
Cannot assign type "Plugin_2 | PluginOption" to type "PluginOption".
Cannot assign type "Plugin" to type "PluginOption".
Cannot assign type "Plugin" to type "Plugin_2".
The property "apply" is incompatible.

@KoninMikhail
Copy link

+1

2 similar comments
@evanbs
Copy link

evanbs commented Apr 17, 2024

+1

@md-owes
Copy link

md-owes commented Jun 23, 2024

+1

@flyfox11
Copy link
Contributor

Parameter of type "({ mode }: ConfigEnv) => { plugins: (Plugin_2 | PluginOption)[]; resolve: { alias: { '@': string; }; }; server: { hmr: true; host: string; port: number; proxy: { '/api': { target: string; changeOrigin: true; rewrite: (path: string) => string; }; }; }; base: string; build: { ...; }; }" cannot be assigned to type "UserConfigExport". Cannot assign type "({ mode }: ConfigEnv) => { plugins: (Plugin_2 | PluginOption)[]; resolve: { alias: { '@': string; }; }; server: { hmr: true; host: string; port: number; proxy: { '/api': { target: string; changeOrigin: true; rewrite: (path: string) => string; }; }; }; base: string; build: { ...; }; }" to type "UserConfigFn". Cannot assign type "{ plugins: (Plugin_2 | PluginOption)[]; resolve: { alias: { '@': string; }; }; server: { hmr: true; host: string; port: number; proxy: { '/api': { target: string; changeOrigin: true; rewrite: (path: string) => string; }; }; }; base: string; build: { ...; }; }" to type "UserConfig | Promise". Cannot assign type "{ plugins: (Plugin_2 | PluginOption)[]; resolve: { alias: { '@': string; }; }; server: { hmr: true; host: string; port: number; proxy: { '/api': { target: string; changeOrigin: true; rewrite: (path: string) => string; }; }; }; base: string; build: { ...; }; }" to type "UserConfig". The property "plugins" is incompatible. Cannot assign type "(Plugin_2 | PluginOption)[]" to type "PluginOption[]". Cannot assign type "Plugin_2 | PluginOption" to type "PluginOption". Cannot assign type "Plugin" to type "PluginOption". Cannot assign type "Plugin" to type "Plugin_2". The property "apply" is incompatible.

this issue has been resolved

@flyfox11
Copy link
Contributor

this issue has been resolved

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

No branches or pull requests

5 participants