algoliasearch-netlify
algoliasearch-netlify copied to clipboard
1.0.13 breaks build
Getting an error during build:
Error message
Could not import plugin:
/opt/build/repo/node_modules/@algolia/netlify-plugin-crawler/src/index.ts:1
import type { NetlifyPluginOptions, NetlifyPluginUtils } from '@netlify/build';
^^^^^^
SyntaxError: Cannot use import statement outside a module
I think upgrading node-fetch
to a version >2 led to this problem since version >=3 doesn't support CJS. We had to downgrade to 1.0.12.
The version should either but adjusted accordingly (not a minor version) or node-fetch should be downgraded.
Hey @reilnuud
Thanks for reporting, I confirm the issue, it must have slipped during our review. I'll try to post a fix today.
Hi again,
We have released a new version that revert node-fetch until we figure out the best way to make it work.
However we have been by a second issue that happen for some Typescript configuration (not related from us). So you can try to upgrade to 1.0.14 but you might encounter the same error as this person unfortunately #713
I'll keep you posted on the fix, Thanks again for reporting 🙏🏻
Thanks! We'll test the new version next week.
Hi I encountered same error with 1.0.14 version
Hello, We have released the 1.0.15, can you try and see if it fixes your issue?