8000 GitHub - Lms24/gh-sentry-javascript-16137-vercel-ai-esm: minimal reproduction for https://github.com/getsentry/sentry-javascript/issues/16137
[go: up one dir, main page]

Skip to content

Lms24/gh-sentry-javascript-16137-vercel-ai-esm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vercel AI and import-in-the-middle Error Reproduction

This repository demonstrates an error that occurs when using Sentry with Vercel AI SDK in ESM

Original reproduction available at: https://github.com/Jaakkonen/sentry-spotlight-vercel-ai-bug

Error Description

When running a Node.js application that registers the import-in-the-middle hook and adds Sentry's SentryVercelAiInstrumentation, the following error occurs:

TypeError: setters.get(...)[name] is not a function
    at Object.set (/node_modules/.pnpm/import-in-the-middle@1.13.1/node_modules/import-in-the-middle/lib/register.js:13:37)

It appears like IITM is trying to set the default export which isn't defined in the ai package.

Steps to Reproduce

  1. pnpm install
  2. Run the application with:
    $ node index.js
    

About

minimal reproduction for https://github.com/getsentry/sentry-javascript/issues/16137

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0