EdJoPaTo / grammy-inline-menu

Inline Menus for Telegram made simple. Successor of telegraf-inline-menu.
MIT License
357 stars 44 forks source link

Tsc build error: An export assignment cannot be used in a module with other exported elements. #113

Closed vhbt closed 4 years ago

vhbt commented 4 years ago

Describe the bug Running tsc to build with typescript fails with the error:

❯ yarn build                   
yarn run v1.22.4
$ tsc
node_modules/telegraf-session-local/lib/session.d.ts:33:3 - error TS2309: An export assignment cannot be used in a module with other exported elements.

33   export = LocalSession

Versions Did you updated telegraf and telegraf-inline-menu to the latest version? (Yes)

What version of NodeJS (and TypeScript) do you use?

To Reproduce Steps to reproduce the behavior:

  1. Delete node_modules
  2. Run yarn
  3. Run yarn tsc
  4. See error

Expected behavior The build to run without any error.

EdJoPaTo commented 4 years ago

Are you sure this is and error from this library? telegraf-session-local and LocalSession are both things from RealSpeaker/telegraf-session-local.

vhbt commented 4 years ago

Omg, I have no idea how I missed this. Sorry about that....... :P