2023-03-05T22:02:01: import pkg from '@adiwajshing/baileys';
2023-03-05T22:02:01:
2023-03-05T22:02:01: at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
2023-03-05T22:02:01: at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
2023-03-05T22:02:01: at async Promise.all (index 0)
2023-03-05T22:02:01: at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
2023-03-05T22:02:01: at async importModuleDynamicallyWrapper (node:internal/vm/module:438:15)
2023-03-05T22:06:43: file:///www/wwwroot/apiwav5/whatsapp.js:6
2023-03-05T22:06:43: useSingleFileLegacyAuthState,
2023-03-05T22:06:43: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-03-05T22:06:43: SyntaxError: Named export 'useSingleFileLegacyAuthState' not found. The requested module '@adiwajshing/baileys' is a CommonJS module, which may not support all module.exports as named exports.
2023-03-05T22:06:43: CommonJS modules can always be imported via the default export, for example using:
2023-03-05T22:06:43:
2023-03-05T22:06:43: import pkg from '@adiwajshing/baileys';
2023-03-05T22:06:43:
2023-03-05T22:06:43: at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
2023-03-05T22:06:43: at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
2023-03-05T22:06:43: at async Promise.all (index 0)
2023-03-05T22:06:43: at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
2023-03-05T22:06:43: at async importModuleDynamicallyWrapper (node:internal/vm/module:438:15)