How to Fix 'SyntaxError: The Requested Module 'algoliasearch' Does Not Provide an Export Named 'Default'' in Node.js Workflow?

This topic was automatically generated from Slack. You can find the original thread here.

Hi, I’m integrating algolia on my workflow in node.js but it’s showing me this error:
SyntaxError
The requested module ‘algoliasearch’ does not provide an export named ‘default’
can anyone help in rectifying this issue.

cc:

Hi , no reproduce steps are provided so I can not help further. Could you please compose reproduce steps then access pipedream.com/support and create a ticket there?

Most likely you’re importing algoliasearch incorrectly.

I’m guessing your code looks like this:

import algoliasearch from 'algoliasearch'

But the docs show it’s a named export, not the default:

import { algoliasearch } from 'algoliasearch';