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
I'm using rollup and experiencing the below error when trying to use import algoliasearch from "algoliasearch";
'default' is not exported by node_modules/algoliasearch/index.js
Yet that index.js does export default?
/* eslint-disable functional/immutable-data, import/no-commonjs */
const algoliasearch = require('./dist/algoliasearch.cjs.js');
/**
* The Common JS build is the default entry point for the Node environment. Keep in
* in mind, that for the browser environment, we hint the bundler to use the UMD
* build instead as specified on the key `browser` of our `package.json` file.
*/
module.exports = algoliasearch;
/**
* In addition, we also set explicitly the default export below making
* this Common JS module in compliance with es6 modules specification.
*/
module.exports.default = algoliasearch;
I've tried using @rollup/plugin-commonjs as many others have said but this doesn't resolve anything.
The text was updated successfully, but these errors were encountered:
I'm using rollup and experiencing the below error when trying to use
import algoliasearch from "algoliasearch";
Yet that index.js does export default?
I've tried using
@rollup/plugin-commonjs
as many others have said but this doesn't resolve anything.The text was updated successfully, but these errors were encountered: