Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

2.0引入VxeTableResolve后MODULE_NOT_FOUND #68

Open
qianjiachun opened this issue Feb 9, 2022 · 0 comments
Open

2.0引入VxeTableResolve后MODULE_NOT_FOUND #68

qianjiachun opened this issue Feb 9, 2022 · 0 comments

Comments

@qianjiachun
Copy link

// vite.config.ts
import {
  createStyleImportPlugin,
  VxeTableResolve
} from 'vite-plugin-style-import'

export default defineConfig({
  plugins: [
    ...
    createStyleImportPlugin({
      resolves:[VxeTableResolve()],
    }),
  ],
})

输出如下

failed to load config from */vite.config.ts
node:internal/modules/cjs/loader:933
  const err = new Error(message);
              ^

Error: Cannot find module 'consola'

1.4版本没有这个问题

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

No branches or pull requests

1 participant