You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed that the version of esbuild is declared in the package.json file of unplugin-vue-jsx. When using import * as esbuild from 'esbuild', it prefers this version, which seems to be the cause of the problem.
I'm not very clear if it's possible to remove the specified version of esbuild from the dependencies. Is there any special consideration for declaring it here? I build the project locally, and it seems to be fine after removal.
I created a new repository on StackBlitz, but it seems that the hints are different from those in my local editor, so I've included a screenshot.
Logs
Argument of type '(options: Options) => { entry: string[]; splitting: true; clean: true; treeshake: true; dts: true; format: ("cjs" | "esm")[]; minify: boolean; esbuildPlugins: Plugin[]; }' is not assignable to parameter of type 'Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>)'.
Type '(options: Options) => { entry: string[]; splitting: true; clean: true; treeshake: true; dts: true; format: ("cjs" | "esm")[]; minify: boolean; esbuildPlugins: Plugin[]; }' is not assignable to type '(overrideOptions: Options) => MaybePromise<Options | Options[]>'.
Describe the bug
Description
When I import
unplugin-vue-jsx/esbuild
in the vscode editor, theesbuild
plugin displays a type error.So I have to use the plugin like:
Noticed that the version of esbuild is declared in the package.json file of
unplugin-vue-jsx
. When usingimport * as esbuild from 'esbuild'
, it prefers this version, which seems to be the cause of the problem.I'm not very clear if it's possible to remove the specified version of esbuild from the dependencies. Is there any special consideration for declaring it here? I build the project locally, and it seems to be fine after removal.
I created a new repository on StackBlitz, but it seems that the hints are different from those in my local editor, so I've included a screenshot.
Logs
Reproduction
https://stackblitz.com/edit/stackblitz-starters-7or5g1
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: