第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

引用taro-ui時(shí)報(bào)錯(cuò)

只有在父中引用<Foof/>時(shí),編譯就會(huì)報(bào)錯(cuò)如下。文檔要求加的H5配置也加了。


Failed to compile.

./node_modules/_taro-ui@1.5.4@taro-ui/dist/h5/components/pagination/index.js 101:11 Module parse failed: Unexpected token (101:11) You may need an appropriate loader to handle this file type. | ? ? }; | > ? ? return <View className={classNames(rootClassName, classObject, this.props.className)} style={customStyle}> | ? ? ? ? <View className="at-pagination__operate"> | ? ? ? ? ? <View className="at-pagination__btns">


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

正在回答

4 回答

請(qǐng)問(wèn)樓主怎么解決的,我也是這樣的錯(cuò)誤,百度了很多,都是說(shuō)修改h5配置,但是并沒(méi)有卵用

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_MR_2

升級(jí)到 Taro v1.2.26 "taro-ui": "^2.1.0" 注意修改兩個(gè)地方: 1、config/index.js 的h5:配置添加 esnextModules: ['taro-ui'], 2、src/app.js 文件 import 'taro-ui/dist/h5/css/index.css'替換成 import 'taro-ui/dist/style/index.scss'
2019-05-07 回復(fù) 有任何疑惑可以回復(fù)我~
#2

慕運(yùn)維8491645

加了配置之后重新編譯一下 必須重新編譯
2019-05-11 回復(fù) 有任何疑惑可以回復(fù)我~

D:/node_modules/_taro-ui@2.0.2@taro-ui/dist/h5/index.js

Module build failed (from ./node_modules/babel-loader/lib/index.js):

ReferenceError: Unknown plugin "transform-object-rest-spread" specified in "base" at 5, attempted to resolve relative to "D:\\node_modules\\_taro-ui@2.0.2@taro-ui\\dist\\h5"

? ? at Array.map (<anonymous>)

配置完之后還是有這樣的錯(cuò)誤

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_MR_2

升級(jí)到 Taro v1.2.26 "taro-ui": "^2.1.0" 注意修改兩個(gè)地方: 1、config/index.js 的h5:配置添加 esnextModules: ['taro-ui'], 2、src/app.js 文件 import 'taro-ui/dist/h5/css/index.css'替換成 import 'taro-ui/dist/style/index.scss'
2019-05-07 回復(fù) 有任何疑惑可以回復(fù)我~

這個(gè)需要配置一下? ?在config文件夾下? 在dev和prod文件中加入對(duì)于taro-ui的編譯,https://img1.sycdn.imooc.com//5c46b7380001931f08940559.jpg

1 回復(fù) 有任何疑惑可以回復(fù)我~

從1.5.2已經(jīng)修復(fù)不是已經(jīng)修復(fù)了嗎?

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

水若寒宇

參考地址 https://nervjs.github.io/taro/docs/config-detail.html#h5esnextmodules
2019-01-22 回復(fù) 有任何疑惑可以回復(fù)我~
#2

街長(zhǎng) 提問(wèn)者

已經(jīng)解決 謝謝
2019-01-22 回復(fù) 有任何疑惑可以回復(fù)我~
#3

jsbin 回復(fù) 街長(zhǎng) 提問(wèn)者

麻煩問(wèn)下是怎么解決的
2020-01-16 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
Taro多端框架開發(fā)外賣首頁(yè)
  • 參與學(xué)習(xí)       22908    人
  • 解答問(wèn)題       92    個(gè)

Taro 一套代碼多端運(yùn)行的框架,帶你掌握Taro開發(fā)基本語(yǔ)法,以及項(xiàng)目開發(fā)

進(jìn)入課程

引用taro-ui時(shí)報(bào)錯(cuò)

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)