mynaparrot/plugNmeet-sdk-js

Warning message at start up (Node 16.17.0)

shubhendumadhukar opened this issue · 3 comments

There seems to be a minor issue, which doesn't break any functionality but does show up as a warning.

Message:
(node:2975) [DEP0128] DeprecationWarning: Invalid 'main' field in './node_modules/plugnmeet-sdk-js/package.json' of 'src/index.ts'. Please either fix that or report it to the module author

With 1.2.0, require doesn't seem to work as shown in the example in readme. Is this an intended change to only support import (esm)?

Error message:
require() of ES Module /<project_path>/node_modules/plugnmeet-sdk-js/index.js from /<file_path> not supported.
Instead change the require of ....to a dynamic import() which is available in all CommonJS modules.

I've pushed new version. Please give another try again.

Works now. Thanks!