owncloud / owncloud-sdk

:cloud: ownCloud client library for JavaScript
https://owncloud.dev/owncloud-sdk/
MIT License
75 stars 33 forks source link

require() of ES Module 'webdav' from 'owncloud-sdk' is not supported #1211

Open ajkarell opened 1 year ago

ajkarell commented 1 year ago

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.