Error when mapping client integrations

edus44
0
edus44
commented 9 months ago

Version

v4.2.0

Reproduction link

https://github.com/nuxt-community/sentry-module/blob/588e3ec7ef8bbd45d487d93dbd176fdba2f9a77d/lib/plugin.client.js#L17..L21

Steps to reproduce

In this file, the map function is not returning anything:

https://github.com/nuxt-community/sentry-module/blob/588e3ec7ef8bbd45d487d93dbd176fdba2f9a77d/lib/plugin.client.js#L17..L21

What is expected ?

To return the integrations object correctly

What is actually happening?

Returning undefined

Additional comments?

To fix this, use return before the typeof or just remove the curly braces.

bug
0
Informations
Bug ReportOpen
#c107 - Created 9 months ago