I'm attempting to utilize the Vite Glob Import feature, which is outlined on their dedicated Features page.
Here's the code line I'm implementing:
const posts = import.meta.glob("./mdx/*.mdx", { eager: true });
Unfortunately, the inclusion of { eager: true}
is leading to the following error(s) during the build process:
Argument of type '{ eager: boolean; }' is not assignable to parameter of type 'GlobOptions'.
Object literal may only specify known properties, and 'eager' does not exist in type 'GlobOptions'.ts(2345)
Is there any specific documentation available or reasons why these solutions might not be functioning as expected? My online search did not yield any useful results.
I have also experimented with other options provided in the documentation like { as: 'raw'}
, but unfortunately, none seem to resolve the issue.