apache / incubator-weex

Apache Weex (Incubating)
https://weex.apache.org
Apache License 2.0
13.75k stars 1.82k forks source link

You may need an appropriate loader to handle this file type. #3296

Open bq49 opened 3 years ago

bq49 commented 3 years ago

Error: ` error in ./src/assets/images/direction_down.png

Module parse failed: Unexpected character '�' (1:0) You may need an appropriate loader to handle this file type. (Source code omitted for this binary file)

@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/game/index.vue 87:17-69 @ ./src/game/index.vue @ ./.temp/router.js @ ./.temp/entry.js @ multi (webpack)-dev-server/client?http://192.168.31.100:8081 ./.temp/entry.js `

env: ` npm -v 6.14.8 node -v v12.18.0 weex -v 2.0.0-beta.31 (Core 2.0.0-beta.31)

cnryb commented 3 years ago

Maybe there are special symbols in your path. Chinese characters may also be considered as special symbols

Gourdbaby commented 3 years ago

If I were you, I would install a file-loader