问题
嘿,伙计们。我试图用Docz来记录我的。问题是我的项目是使用本机基础。
当我试图构建Description时,我一直收到以下错误:
./node_modules/native-base-shoutem-theme/src/StyleProvider.js 10:19
Module parse failed: Unexpected token (10:19)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| */
| export default class StyleProvider extends React.Component {
> static propTypes = {
| children: PropTypes.element.isRequired,
| style: PropTypes.object,这是我的doczrc.js文件:
import { reactNative } from 'docz-plugin-react-native';
export default {
title: 'Recarga Styleguide',
plugins: [reactNative()],
native: true,
src: './app/components/ui/' // <== where the components are located inside the project
};我一直在研究,这似乎是一个相当常见的错误与本土化基地。我在堆栈溢出中找到了这个解决方案:[博览网络未能编译,因为本机基础module](https://stackoverflow.com/questions/56586865/expo-for-web-failed-to-compile-because-of-native-base-module for Web由于本机基本模块而无法编译)
我怀疑这个解决方案可能对我有用,问题是:我不认为我的项目是使用博览会。我想我想在我的babel.config或metro.config文件上尝试一些设置,但我不确定它将如何工作。
你能帮我一下吗?谢谢!
https://stackoverflow.com/questions/58017511
复制相似问题