Skip to content

Doesn't work on nodejs v14.1.0 #1

@shunz19

Description

@shunz19

I installed the module using npm install --save node-tmux in my

Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

and when I tried to import the module:

import {tmux} from 'node-tmux';
^^^^
SyntaxError: The requested module 'node-tmux' does not provide an export named 'tmux'
at ModuleJob._instantiate (internal/modules/esm/module_job.js:92:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:107:20)
at async Loader.import (internal/modules/esm/loader.js:179:24)

Then I tried

import * as tmux from 'node-tmux';
console.log(tmux)
tmux().then(tm => { ...

Which resulted to:

[Module] {
default: { Tmux: [Function: Tmux], tmux: [Function: tmux] }
}
file:///home/test/mcn/index.js:6
tmux().then(tm => {
^
TypeError: tmux is not a function

Even tho i tried using

tmux.default.tmux().then(tm => { ...

I still couldn't get an instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions