Open SwiTool opened 5 years ago
It works by replacing this :
// Load build-in plugins
this.buildInPlugins.map(buildInPluginName => this.plug(require('this.buildInPluginsFolder + buildInPluginName')));
// Load user plugins
this.usePlugins.map(userPluginName => this.plug(require('this.pluginFolder + userPluginName')));
into this :
// Load build-in plugins
this.buildInPlugins.map(buildInPluginName => this.plug(require(`${this.buildInPluginsFolder}${buildInPluginName}`)));
// Load user plugins
this.usePlugins.map(userPluginName => this.plug(require(`${this.pluginFolder}${userPluginName}`)));
Telebot version: ^1.2.6
I get this warning when I import the Telebot module:
It prevents me from running my app. I'm using electron-webpack (default configuration) here are the babel plugins / preset :
I have something similar with another Telegram library. What's wrong please? https://github.com/telegraf/telegraf/issues/511