unplugin / unplugin-auto-import

Auto import APIs on-demand for Vite, Webpack and Rollup
MIT License
3.21k stars 195 forks source link

Error in docker environment packaging #159

Closed jwhupup closed 2 years ago

jwhupup commented 2 years ago

I have installed it. There is no problem when packaging locally, but there is an error when packaging in the docker environment. The error message is: Error:[auto-import] failed to loaded @vueuse/core,have you installed it?

jwhupup commented 2 years ago
import autoImport from 'unplugin-auto-import/vite';

autoImport({
  imports: ['vue', 'vue-router', '@vueuse/core', '@vueuse/head'],
  dts: 'types/auto-import.d.ts',
}),
antfu commented 2 years ago

We temporarily close this due to the lack of enough information. Please provide a minimal reproduction to reopen the issue. Thanks.