我安装了使用纱线的本机路由器,并且只是在导入NativeRouter时安装的。
这是我如何从反应-路由器-本机导入{ NativeRouter,路由,链路}从“反应-路由器-本地”;
这就是我所犯的错误
D:/WORKSHOP/Tunga/music-app/node_modules/react-router-native/NativeRouter.js 11:9
Module parse failed: Unexpected token (11:9)
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
| */
| function NativeRouter(props) {
> return <MemoryRouter {...props} />;
| }
|发布于 2020-06-19 11:43:31
也犯了同样的错误。通过添加:
"web": {
"build": {
"babel": {
"include": ["react-router-native"]
}
}
}转到app.json
来自:source
https://stackoverflow.com/questions/61159915
复制相似问题