引用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">
2019-04-30
請(qǐng)問(wèn)樓主怎么解決的,我也是這樣的錯(cuò)誤,百度了很多,都是說(shuō)修改h5配置,但是并沒(méi)有卵用
2019-04-01
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ò)誤
2019-01-22
這個(gè)需要配置一下? ?在config文件夾下? 在dev和prod文件中加入對(duì)于taro-ui的編譯,
2019-01-22
從1.5.2已經(jīng)修復(fù)不是已經(jīng)修復(fù)了嗎?