NervJS / taro-ui

一款基于 Taro 框架开发的多端 UI 组件库
https://taro-ui.taro.zone
MIT License
4.52k stars 756 forks source link

AtActionSheet组件引入报错EISDIR: illegal operation on a directory, read #944

Closed hangaoke1 closed 4 years ago

hangaoke1 commented 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

taro-ui-bot[bot] commented 4 years ago

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

Garfield550 commented 4 years ago

删除 node_modules 之后重新安装一下依赖。

hangaoke1 commented 4 years ago

谢谢 已解决

wei-zone commented 3 years ago

怎么解决的呢