javascript - React native - babel-plugin-module-resolver '1' of undefined
问题描述
我正在开发带有博览会的本机应用程序。但我有一个问题。当我使用 npm start 或 expo start 启动应用程序时。我收到这个错误。
node_modules\babel-plugin-module-resolver\lib\index.js:88
TypeError: Cannot read property '1' of undefined
我删除了所有 node_modules。但它不起作用。我该如何解决?
节点版本:v8.11.4
解决方案
尝试恢复当前版本的 babel。不久前,当他们的一个依赖项出现问题时,我遇到了这个问题
推荐阅读
- python - 如何训练具有多个输出的 pytorch 模型
- python-3.6 - Lambda 函数因 /lib64/libc.so.6 失败:未找到版本“GLIBC_2.18”
- cmd - Robocopy 查询以复制除 1 个文件之外的所有文件
- sql - 在我遇到的 sql 上创建表时
- swift - 如何动态更改 SKSpriteNode 的反弹?
- javascript - 创建一个在 HTTP 请求完成之前产生的函数
- arrays - golang 不会更新地图中的数组
- discord.js - 来自用户名的 Discord.js 自动角色
- python - 如何从包含文本的列中提取特定数字
- c - 从屏幕读回字符串的 C 函数是什么?