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
failed to load config from /jnpfsoft-jnpf-jnpf-web-vue3-mock/vite.config.mts
error when starting dev server:
file:///jnpfsoft-jnpf-jnpf-web-vue3-mock/vite.config.mts.timestamp-1732765296557-595293d244146.mjs:255
import { convertLegacyToken } from "file:///jnpfsoft-jnpf-jnpf-web-vue3-mock/node_modules/.pnpm/[email protected][email protected]/node_modules/ant-design-vue/lib/theme/convertLegacyToken.js";
^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'convertLegacyToken' not found. The requested module 'file:///jnpfsoft-jnpf-jnpf-web-vue3-mock/node_modules/.pnpm/[email protected][email protected]/node_modules/ant-design-vue/lib/theme/convertLegacyToken.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
Version
4.2.6
Environment
vue 3.4.27、chrome131.0.6778.86
Reproduction link
https://github.com/vueComponent/ant-design-vue/blob/4a37016f4e3f829838b2e2b3cd128af220d67be8/components/theme/convertLegacyToken.ts
Steps to reproduce
vue 3.4.27,vite 5.3.5版本直接提示不支持CMJ 模式
failed to load config from /jnpfsoft-jnpf-jnpf-web-vue3-mock/vite.config.mts
error when starting dev server:
file:///jnpfsoft-jnpf-jnpf-web-vue3-mock/vite.config.mts.timestamp-1732765296557-595293d244146.mjs:255
import { convertLegacyToken } from "file:///jnpfsoft-jnpf-jnpf-web-vue3-mock/node_modules/.pnpm/[email protected][email protected]/node_modules/ant-design-vue/lib/theme/convertLegacyToken.js";
^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'convertLegacyToken' not found. The requested module 'file:///jnpfsoft-jnpf-jnpf-web-vue3-mock/node_modules/.pnpm/[email protected][email protected]/node_modules/ant-design-vue/lib/theme/convertLegacyToken.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'file:///jnpfsoft-jnpf-jnpf-web-vue3-mock/node_modules/.pnpm/[email protected][email protected]/node_modules/ant-design-vue/lib/theme/convertLegacyToken.js';
const { convertLegacyToken } = pkg;
What is expected?
希望ant design vue能支持vite5.0
What is actually happening?
vite 5.0 开始不支持cmj模式
The text was updated successfully, but these errors were encountered: