引用taro-ui时报错
只有在父中引用<Foof/>时,编译就会报错如下。文档要求加的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">