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
import{defineConfig}from'vite'importpathfrom'node:path'importvuefrom'@vitejs/plugin-vue2'importvueJsxfrom'@vitejs/plugin-vue2-jsx'importdevConfigfrom'./build/dev.config'// https://vitejs.dev/config/exportdefaultdefineConfig({plugins: [vue(),vueJsx({jsx: true// options are passed on to @vue/babel-preset-jsx})],resolve: {alias: [{find: /\/@src\//,replacement: path.join(process.cwd(),"src/")},{find: /\/@packages\//,replacement: path.join(process.cwd(),"packages/")},{find: /\/@lib\//,replacement: path.join(process.cwd(),"lib/")},{find: /\/@examples\//,replacement: path.join(process.cwd(),"examples/")},{find: /\/@\//,replacement: path.join(process.cwd(),"examples/")},]},
...devConfig})
error
[vite] Internal server error: Failed to resolve import "@vue/babel-helper-vue-jsx-merge-props" from "packages/CustomConfigSearch/src/components/SearchConditionResult/components/ConfirmDialog.vue?vue&type=script&lang.jsx". Does the file exist?
Plugin: vite:import-analysis
import _mergeJSXProps from "@vue/babel-helper-vue-jsx-merge-props";
| ^
2 | import { h } from "vue";
3 | const p = () => new Promise(r => r(true));
It was installed using pnpm.But it works well when installed using npm.
node: v16.14.2
pnpm: v8.10.4
npm: v8.3.1
The text was updated successfully, but these errors were encountered:
package.json
vite.config.js
error
It was installed using pnpm.But it works well when installed using npm.
The text was updated successfully, but these errors were encountered: