这是引用组件的方式======》》》》》》
import WucTab from "../../components/wuc-tab/wuc-tab.vue";
import Dswiper from "../../components/3D_swiper/3D_swiper.vue";
import uniPopup from "../../components/uni-popup/uni-popup.vue";
import popupLayer from "@/components/uni-popup/popup-layer.vue";
import { getMenuByType } from "@/api/getMenuByType";
export default {
created() {
//获取底部菜单
this.menuData = getMenuByType(2, "myCard");
},
data() {
return {
boolShow: false,
avatar: "../../static/businessCard/MP-touxiang.png",
icon: "",
name: "",
position_name: "",
province_name: "",
city_name: "",
area_name: "",
phone: "",
email: "",
id: "",
user_id: ""
};
},
onLoad() {
// 渲染数据
this.getData();
},
components: {
WucTab,
Dswiper,
uniPopup,
popupLayer
}
}
这是报错内容========》》》》》》:
new-mall@0.1.0 build:mp-weixin D:\Users\Administrator\eclipse-workspace\mall-uniapp\new-mall
cross-env NODE_ENV=production UNI_PLATFORM=mp-weixin vue-cli-service uni-build
当前项目编译模式:自定义组件模式。编译模式差异见:https://ask.dcloud.net.cn/article/35843
Module parse failed: Unexpected token (17:9)
You may need an appropriate loader to handle this file type.
|
| var WucTab = function WucTab() {
return import( |
/webpackChunkName: "components/wuc-tab/wuc-tab"/ |
"../../components/wuc-tab/wuc-tab.vue");
Module parse failed: Unexpected token (17:9)
You may need an appropriate loader to handle this file type. |
var popupLayer = function popupLayer() { |
return import( |
/webpackChunkName: "components/uni-popup/popup-layer"/ |
"@/components/uni-popup/popup-layer.vue");
Module parse failed: Unexpected token (17:9)
You may need an appropriate loader to handle this file type. |
var timeBot = function timeBot() { |
return import( |
/webpackChunkName: "components/timeBot/timeBot"/ |
"../../components/timeBot/timeBot.vue");
Module parse failed: Unexpected token (19:9)
You may need an appropriate loader to handle this file type. |
var WucTab = function WucTab() { |
return import( |
/webpackChunkName: "components/wuc-tab/wuc-tab"/ |
"../../components/wuc-tab/wuc-tab.vue");
Module parse failed: Unexpected token (19:9)
You may need an appropriate loader to handle this file type. |
var mpvueCityPicker = function mpvueCityPicker() { |
return import( |
/webpackChunkName: "components/mpvue-citypicker/mpvueCityPicker"/ |
"../../components/mpvue-citypicker/mpvueCityPicker.vue");
Module parse failed: Unexpected token (19:9)
You may need an appropriate loader to handle this file type. |
var popupLayer = function popupLayer() { |
return import( |
/webpackChunkName: "components/uni-popup/popup-layer"/ |
"@/components/uni-popup/popup-layer.vue");
Module parse failed: Unexpected token (26:9)
You may need an appropriate loader to handle this file type. |
var tabbar = function tabbar() { |
return import( |
/webpackChunkName: "components/tabbar/tabbar"/ |
"./components/tabbar/tabbar");
Module parse failed: Unexpected token (95:9)
You may need an appropriate loader to handle this file type. |
var uniNumberBox = function uniNumberBox() { |
return import( |
/webpackChunkName: "components/uni-number-box/uni-number-box"/ |
"@/components/uni-number-box/uni-number-box.vue");
Module parse failed: Unexpected token (9:9)
You may need an appropriate loader to handle this file type. |
var WucTab = function WucTab() { |
return import( |
/webpackChunkName: "components/wuc-tab/wuc-tab"/ |
"../../components/wuc-tab/wuc-tab.vue");
Module parse failed: Unexpected token (9:9)
You may need an appropriate loader to handle this file type. |
var mpvueCityPicker = function mpvueCityPicker() { |
return import( |
/webpackChunkName: "components/mpvue-citypicker/mpvueCityPicker"/ |
"../../components/mpvue-citypicker/mpvueCityPicker.vue");
Module parse failed: Unexpected token (9:9)
You may need an appropriate loader to handle this file type. |
var timeBot = function timeBot() { |
return import( |
/webpackChunkName: "components/timeBot/timeBot"/ |
"../../components/timeBot/timeBot.vue");
Module parse failed: Unexpected token (9:9)
You may need an appropriate loader to handle this file type. |
var uniRate = function uniRate() { |
return import(
| /webpackChunkName: "components/uni-rate/uni-rate"/
| "../../components/uni-rate/uni-rate.vue");
ERROR Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! new-mall@0.1.0 build:mp-weixin: cross-env NODE_ENV=production UNI_PLATFORM=mp-weixin vue-cli-service uni-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the new-mall@0.1.0 build:mp-weixin script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Program Files\nodejs\node_cache_logs\2019-06-13T02_08_48_160Z-debug.log
1 个回复
DuD - 任何不快乐的时光都是浪费。——Any unhappy is a waste of time.
同问