我想在我的react 16.8.3项目上实现'react-bootstrap-time-picker'软件包。 react-bootstrap-time-picker使用webpack配置,我无法在我的webpack上进行配置。我查看了自述文件和示例,但无法弄清楚如何实现。
我尝试将软件包导入为不起作用的普通软件包
import TimePicker from 'react-bootstrap-time-picker';
<TimePicker
disabled={this.props.saturdayMorning.value}
value={'11:00'}
id='mornT'
format={24}
step={30}
onChange={this.props.TimeChange.bind(this)}
start={this.props.Schedule.inTime}
end={this.props.Valid.end}
/>
The Error that I get on browser
ReferenceError: require is not defined
eval
webpack-internal:///3:1:18
push../node_modules/react-bootstrap-time-picker/dist/bundle.js
node_modules/react-bootstrap-time-picker/dist/bundle.js:40