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

fix: Locked redis package version to 4.0.6 INT-1038 #4

Merged
merged 2 commits into from
Jun 7, 2023
Merged

Conversation

penwoodjon
Copy link
Contributor

No description provided.

@penwoodjon penwoodjon changed the title fix: Fixed import to allow for node 12 usage of redis library fix: Fixed import to allow for node 12 usage of redis library INT-1038 Jun 5, 2023
Copy link
Contributor

@sarus sarus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@penwoodjon I don't believe this fixes the issue as the latest Redis library is not compatible with Node12. See this thread:

redis/node-redis#2117

This PR will allow the integration to start but it just punts the error to when the search is run (and the client is created). When I tried this PR I still get the error:

   /polarity-server/integrations/redis/node_modules/redis/dist/index.js:42
                ...options?.modules                        
    SyntaxError: Unexpected token '.'

I just tested and we can fix the issue by just locking the redis package version to 4.0.6 for now and then revert your changes (i.e., go back to using require at the top of the file).

@penwoodjon penwoodjon changed the title fix: Fixed import to allow for node 12 usage of redis library INT-1038 fix: Locked redis package version to 4.0.6 INT-1038 Jun 7, 2023
@penwoodjon penwoodjon merged commit 950ab8a into master Jun 7, 2023
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

Successfully merging this pull request may close these issues.

2 participants