Following error occurs when trying to use owncloud-sdk with Node.js v19.6.0:
Error [ERR_REQUIRE_ESM]: require() of ES Module .../node_modules/webdav/dist/node/index.js from .../node_modules/owncloud-sdk/dist/owncloud.js not supported. Instead change the require of index.js in .../node_modules/owncloud-sdk/dist/owncloud.js to a dynamic import() which is available in all CommonJS modules.
Following error occurs when trying to use owncloud-sdk with Node.js v19.6.0:
Error [ERR_REQUIRE_ESM]: require() of ES Module .../node_modules/webdav/dist/node/index.js from .../node_modules/owncloud-sdk/dist/owncloud.js not supported. Instead change the require of index.js in .../node_modules/owncloud-sdk/dist/owncloud.js to a dynamic import() which is available in all CommonJS modules.