#I'm trying to upgrade to the latest package and getting 'import-in-the-middle' errors

1 messages · Page 1 of 1 (latest)

clever atlas
#

This is my trigger config, am getting this error:

│         const { createAddHookMessageChannel } = pkg;
│          in src/trigger/inserting-events/google-calendar-insert.ts
│         x Named export 'createAddHookMessageChannel' not found. The requested module 'import-in-the-middle' is a CommonJS module, which may not support all module.exports as named exports.
│         CommonJS modules can always be imported via the default export, for example using:```
#

been getting it since i changed to "dirs" and also since using the new cli command npx trigger.dev@latest dev

clever atlas
#

this seemes to fix it.. sorry a bit lost rn

stiff junco
#

@hollow notch this is one for you

stiff junco
#

@hollow notch

hollow notch
#

I think it's an issue with the import-in-the-middle version, possibly being overridden by one of those instrumentations pulling in an older version

#

Can you make sure you are using the latest versions of the fetch and http instrumentation packages?

clever atlas
#

will try thanks!