vue3-lazyload icon indicating copy to clipboard operation
vue3-lazyload copied to clipboard

[error] may need an appropriate loader to handle this file type

Open KBKUN024 opened this issue 2 years ago • 14 comments

The error in command is below: image Actually,I use it follow documentation,is the image below: image But command notice me that I need a appropriate loader to handle this file,how can I fix it?

KBKUN024 avatar Jul 20 '22 13:07 KBKUN024

which loader should I use?

KBKUN024 avatar Jul 20 '22 13:07 KBKUN024

In my code,main.js: image

KBKUN024 avatar Jul 20 '22 13:07 KBKUN024

Are you use vue-cli default config?

murongg avatar Jul 20 '22 13:07 murongg

You need find a webpack loader load .mjs file.

murongg avatar Jul 20 '22 13:07 murongg

yes,I'm sure

发自我的iPhone

------------------ Original ------------------ From: 木荣 @.> Date: Wed,Jul 20,2022 9:23 PM To: murongg/vue3-lazyload @.> Cc: KBKUN024 @.>, Author @.> Subject: Re: [murongg/vue3-lazyload] [error] may need an appropriate loader tohandle this file type (Issue #31)

Are you use vue-cli default config?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

KBKUN024 avatar Jul 20 '22 14:07 KBKUN024

I tried use vue-cli create default config project. This error did not occur.

murongg avatar Jul 21 '22 00:07 murongg

What version are you using?

murongg avatar Jul 21 '22 00:07 murongg

I am also facing the error

Bataino avatar Aug 22 '22 12:08 Bataino

What version are you using?

Vue 3.2.22 ts

Andrii-Khoptii avatar Aug 23 '22 12:08 Andrii-Khoptii

the same to me .waiting for the solution ~

Aseisman avatar Sep 16 '22 08:09 Aseisman

@Xudadaaa Try to check the dependent version related to vue or vite.

murongg avatar Sep 16 '22 08:09 murongg

原因应该是不支持?的语法,需要load加载,具体要用那个load?

tsoil avatar Sep 22 '22 07:09 tsoil

@tsoil 我使用了 vite 与 vue-cli 的默认模板,没有发现什么问题,所以我也很困惑。

murongg avatar Sep 22 '22 07:09 murongg

@Xudadaaa Try to check the dependent version related to vue or vite.

升级版本就可以啦 thanks

Aseisman avatar Sep 22 '22 09:09 Aseisman