Closed hangaoke1 closed 4 years ago
问题描述
引入AtActionSheet组件,使用后报错EISDIR: illegal operation on a directory, read
复现步骤
import Taro, { Component } from '@tarojs/taro' import { View } from '@tarojs/components' import { AtActionSheet, AtActionSheetItem } from 'taro-ui' import './index.less' class indexx extends Component { config = { navigationBarTitleText: '首页' } componentWillMount () { } componentDidMount () { } render () { const prefixCls = 'ehome-index' return ( <View className={prefixCls}> <AtActionSheet isOpened> <AtActionSheetItem> 按钮一 </AtActionSheetItem> <AtActionSheetItem> 按钮二 </AtActionSheetItem> </AtActionSheet> </View> ) } } export default indexx
期望行为
不报错
报错信息
编译 发现页面 src/pages/remark/index.js 编译 发现组件 node_modules/taro-ui/dist/weapp/components/textarea/index.js 🙅 编译失败.
EISDIR: illegal operation on a directory, read
监听文件修改中...
系统信息
补充信息
Mac os
欢迎提交 Issue~
如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏
如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。
Good luck and happy coding~
删除 node_modules 之后重新安装一下依赖。
谢谢 已解决
怎么解决的呢
问题描述
引入AtActionSheet组件,使用后报错EISDIR: illegal operation on a directory, read
复现步骤
期望行为
不报错
报错信息
编译 发现页面 src/pages/remark/index.js 编译 发现组件 node_modules/taro-ui/dist/weapp/components/textarea/index.js 🙅 编译失败.
EISDIR: illegal operation on a directory, read
监听文件修改中...
系统信息
补充信息
Mac os