报错信息:
error in ./node_modules/vue-3d-model/dist/vue-3d-model.umd.js Module parse failed: Unexpected token (9281:25) You may need an appropriate loader to handle this file type. | | this.texture = source.texture.clone(); | this.texture.image = { ...this.texture.image }; // See #20328. | | this.depthBuffer = source.depthBuffer; @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/vue/components/wdyDocumentPreview/index.vue 56:0-44 @ ./src/vue/components/wdyDocumentPreview/index.vue @ ./src/js/routes.js @ ./src/js/main.js @ multi (webpack)-dev-server/client?http://192.168.1.32:80 webpack/hot/dev-server ./src/js/main.js
找到 node_modules\vue-3d-model\dist\vue-3d-model.umd.js文件
大约是9281行代码
this.texture.image = { ...this.texture.image }; // See #20328.
改成
this.texture.image = JSON.parse(JSON.stringify(this.texture.image));
就可以了