亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

./node_modules/taro-ui/dist/h5/components/pagination/index.js 101:11 Module parse failed: Unexpected token (101:11)

./node_modules/taro-ui/dist/h5/components/pagination/index.js?101:11
Module?parse?failed:?Unexpected?token?(101:11)


將taro-ui 從1.5.1版本強制降到1.5.0版本后編譯通過

1.5.2已經修復


https://github.com/NervJS/taro-ui/issues/239

正在回答

5 回答

加了配置之后要重新編譯

0 回復 有任何疑惑可以回復我~

https://img1.sycdn.imooc.com//5c9345240001d11f09870555.jpg

重新編譯 就解決了


0 回復 有任何疑惑可以回復我~

https://taro-ui.aotu.io/#/docs/quickstart??
由于引用?node_modules?的模塊,默認不會編譯,所以需要額外給 H5 配置?esnextModules,在 taro 項目的?config/index.js?中新增如下配置項:

h5: {

? esnextModules: ['taro-ui']

}


1 回復 有任何疑惑可以回復我~

怎么強制降低版本?

0 回復 有任何疑惑可以回復我~
#1

fengshunsgit 提問者

把舊的卸了,然后安裝的時候指定版本,不過現在最新版已經修復了
2019-01-09 回復 有任何疑惑可以回復我~

./node_modules/taro-ui/dist/h5/components/pagination/index.js 101:11 Module parse failed: Unexpected token (101:11)

./node_modules/taro-ui/dist/h5/components/pagination/index.js?101:11
Module?parse?failed:?Unexpected?token?(101:11)


將taro-ui 從1.5.1版本強制降到1.5.0版本后編譯通過

1.5.2已經修復


https://github.com/NervJS/taro-ui/issues/239


1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Taro多端框架開發外賣首頁
  • 參與學習       22910    人
  • 解答問題       92    個

Taro 一套代碼多端運行的框架,帶你掌握Taro開發基本語法,以及項目開發

進入課程

./node_modules/taro-ui/dist/h5/components/pagination/index.js 101:11 Module parse failed: Unexpected token (101:11)

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號