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
ReferenceError: Response not defined is thrown when ampli is loaded with disabled: true flag.
Steps to reproduce:
Call ampli.load() with disabled: true
Add a valid event to the tracking plan
Call on event with ampli to validate
ReferenceError is thrown
If disabled flag is switched to false, application behaves as expected
As I can see, the error originates in the ampli/index.js generated file. There on line 245 Promise.resolve has <Response> type, however that is not defined in js runtime. This throws an error. If I manually remove the <Response> from the line, application works as expected. But this is not an option since the file is overwritten on every use of ampli pull.
ReferenceError: Response not defined
is thrown when ampli is loaded withdisabled: true
flag.Steps to reproduce:
ampli.load()
withdisabled: true
If
disabled
flag is switched to false, application behaves as expectedAs I can see, the error originates in the
ampli/index.js
generated file. There on line 245Promise.resolve
has<Response>
type, however that is not defined in js runtime. This throws an error. If I manually remove the<Response>
from the line, application works as expected. But this is not an option since the file is overwritten on every use ofampli pull
.OS: macOS Monterey 12.3
Node version: 16.14.2
Ampli version: @amplitude/ampli/1.10.0 darwin-arm64 node-v12.22.12
The text was updated successfully, but these errors were encountered: