You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I installed the module using
npm install --save node-tmux
in myand when I tried to import the module:
Then I tried
Which resulted to:
Even tho i tried using
I still couldn't get an instance
The text was updated successfully, but these errors were encountered: