Skip to content
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

Named export 'remarkReadingTime' not found in astro.config.mjs #62

Closed
UmungoBungo opened this issue Nov 17, 2022 · 2 comments
Closed

Named export 'remarkReadingTime' not found in astro.config.mjs #62

UmungoBungo opened this issue Nov 17, 2022 · 2 comments

Comments

@UmungoBungo
Copy link

UmungoBungo commented Nov 17, 2022

Using npm v9.1.2 and node v14.18.1. I had a look on the Astro Discord and couldn't see any similar issues popping up for anyone.

Steps to reproduce, on the latest main
npm install
npm run start

Error message

file:///Users/irrelevant/astrowind/astro.config.mjs:12
import { remarkReadingTime } from './src/utils/frontmatter.js';
         ^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'remarkReadingTime' not found. The requested module './src/utils/frontmatter.js' is a CommonJS module, which may not support all module.exports as named exports.

a9d5667 is the latest commit that works for me. The next commit is upgrading Astro to 1.6.8
Steps to get running
git checkout a9d56673b47d9c4c7d41977eec13f2fb1b88fe54
npm install
npm run start

@prototypa
Copy link
Contributor

Hello @UmungoBungo

I've just installed AstroWind on a Mac using node v14.20.0 and npm v9.1.2 and everything works fine.

Could you please give more details, what might be different specifically in your runtime environment?

@prototypa
Copy link
Contributor

I have asked several contributors for help, they have installed AstroWind on their computers with node v14 and npm v9 and everything works fine for them. I don't know exactly what will happen in your environment but it seems to be something very specific.
I am going to close this Issue, but if you have more details, do not hesitate to write and if it is a general problem, I will open it and continue investigating. Thank you for taking the time to make AstroWind better.

@prototypa prototypa closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants