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
Fix: Use CommonJS-compatible imports for tsdav field updaters
The previous fix using named imports (e8e9f4c) worked locally but failed
in Docker with: "Named export 'updateEventFields' not found. The requested
module 'tsdav' is a CommonJS module".
Changed from:
import { updateEventFields as tsdavUpdateEventFields } from 'tsdav';
To:
import tsdavPkg from 'tsdav';
const { updateEventFields: tsdavUpdateEventFields } = tsdavPkg;
This pattern works in both ESM and CommonJS environments because it uses
the default import with destructuring, which is the recommended way to
import named exports from CommonJS modules in ESM contexts.
Affected files:
- src/tools/calendar/update-event-fields.js
- src/tools/contacts/update-contact-fields.js
- src/tools/todos/update-todo-fields.js
0 commit comments