【发布时间】:2018-09-06 02:54:55
【问题描述】:
我尝试过使用 npm 包reactstrap。
我的组件:
import { Col, Button, Form, FormGroup, Label, Input, FormText } from 'reactstrap';
我收到以下错误:
ExecJS::ProgramError at /dir/xyz
TypeError: require is not a function
【问题讨论】:
-
你是用 npm 安装的吗?
-
是的。包现在在我的 node_modules 中。
标签: ruby-on-rails reactjs sprockets reactstrap