Error creating new project

Hi, I’m going to start a new project with Frontity but when I run in console npx frontity dev I get this error:

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)
 @ ./node_modules/frontity/dist/src/index.js
 @ ./node_modules/@frontity/wp-source/src/state.ts
 @ ./node_modules/@frontity/wp-source/src/index.ts
 @ ./build/bundling/entry-points/server.ts

i 「wdm」: Failed to compile.

Thanks!

Hi, I’ve literally started the exact same thread at the same time! Can't import the named export 'URL' from non EcmaScript module (only default export is available)

I’m having the same issue, it would be good to have a solution for that. Thanks!

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

Please update your Frontity packages using this guide: Keep Frontity Updated - Frontity Docs

4 Likes

it works!

thank you!! :slight_smile:

1 Like