New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't import the named export 'URL' from non EcmaScript module (only default export is available) #868
Comments
Having the same issue sadly |
Same here, tried Node 14.17.6 & 16.9.1 |
has something updated lately, I just started learning this today |
I have the same problem. Node 14.16.0. I've updated both my project and my packages to the latest Frontity versions and the problem still occurs. |
|
@luisherranz I did explore the change to ESM only too, but it doesn't lead anywhere since we're not using version 3 in frontity. I think this caused because In that case maybe frontity needs to pin the version to 2.6.2 |
same issue here for the first time installing it |
if you explicitly set the version to 2.6.2 by adding node-fetch to package.json does it solve the issue? |
It does indeed. Good catch @robrecord 🙂 |
why is closed? is still happening at me... I still have 2.6.1 version in the node_modules frontity package |
Issues are closed once a fix is merged to the base branch. After that, you need to wait for the next release, which @SantosGuillamot started 1 hour ago: #871 |
This is already done 🙂 The issue should be solved now. |
Thanks Mario! Please update your Frontity packages using this guide: https://docs.frontity.org/guides/keep-frontity-updated |
Bug report
Expected behavior
Should have installed all the dependencies
Observed behavior
Frontity fails to install upon running
npx frontitty dev
Steps involved to reproduce the problem
npx frontity create my-app
cd my-app
npx frontity dev
ERROR in ./node_modules/node-fetch/lib/index.mjs 1157:18-21 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/tiny-router/src/actions.ts @ ./node_modules/@frontity/tiny-router/src/index.ts @ ./build/bundling/entry-points/server.ts
Info about your system
System:
Binaries:
Browsers:
npmPackages:
npmGlobalPackages:
Possible solution
The text was updated successfully, but these errors were encountered: