Can't import the named export 'URL' from non EcmaScript module (only default export is available)

Hi there,

I’ve just created a fresh install of a Frontity project but when I run npx frontity dev I get the following error message

ERROR in ./node_modules/node-fetch/lib/index.mjs 1157:15-18

Can’t import the named export ‘URL’ from non EcmaScript module (only default export is available)

Why would that happen?
Thanks

Working on the fix right now: https://github.com/frontity/frontity/issues/868 :slightly_smiling_face:

2 Likes

This is fixed now. Please update your Frontity packages using this guide: Keep Frontity Updated - Frontity Docs

1 Like