Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'Z_SYNC_FLUSH') #37

Open
octave opened this issue Sep 22, 2023 · 3 comments
Open

Cannot read properties of undefined (reading 'Z_SYNC_FLUSH') #37

octave opened this issue Sep 22, 2023 · 3 comments

Comments

@octave
Copy link

octave commented Sep 22, 2023

Added the latest 6.0.0 version to my Hydrogen/Remix project. And I can't even start my app:

TypeError: Cannot read properties of undefined (reading 'Z_SYNC_FLUSH')
    at node_modules/axios/dist/node/axios.cjs (/node_modules/axios/lib/adapters/http.js:29:25)
    at node_modules/klaviyo-api/dist/api/accountsApi.js (/node_modules/klaviyo-api/api/accountsApi.ts:13:1)
@Ian-Montgomery-Klaviyo
Copy link
Collaborator

Looks like this is an error with axios. I changed the way axios is imported in today's 6.0.1 release as a potential fix that was outlined in this axios issue. Let us know if fix works or we need to connect farther to find a working solution.

@octave
Copy link
Author

octave commented Sep 22, 2023

Thanks for your quick reply! I just tried with 6.0.1 and same error.

In the meantime I switched to using the api with fetch which works fine.

@umxr
Copy link

umxr commented May 2, 2024

@octave how did you manage to switch to using fetch? im running into the exact same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants