Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on nodejs v14.1.0 #1

Open
shunz19 opened this issue May 5, 2020 · 0 comments
Open

Doesn't work on nodejs v14.1.0 #1

shunz19 opened this issue May 5, 2020 · 0 comments

Comments

@shunz19
Copy link

shunz19 commented May 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant