You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did anyone figure our how to create a Download button component (using fields.file) to be used inside an fields.mdx that stores the downloadable file somewhere that is not the public folder?
14:24:36 [ERROR] [Error] Failed to parse source for import analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .xlsx file format, or if it's an asset, add "**/*.xlsx" to `assetsInclude` in your configuration.
Hint:
This issue often occurs when your MDX component encounters runtime errors.
Stack trace:
at TransformPluginContext._formatError (file:///Users/fmc/Development/rsv-landingpages/rsv-lp-frm7/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:49255:41)
[...] See full stack trace in the browser, or rerun with --verbose.
Parts of the astro Component that create the error above:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Did anyone figure our how to create a Download button component (using
fields.file
) to be used inside anfields.mdx
that stores the downloadable file somewhere that is not thepublic
folder?I tried following the guide for images https://keystatic.com/docs/recipes/astro-images#content-component-images.
I can get the glob to return the
xlsx
file, that I want to be downloadable but then …Parts of the
astro
Component that create the error above:My Keystatic Block Config:
Details
import { fields } from '@keystatic/core'
import { block } from '@keystatic/core/content-components'
Beta Was this translation helpful? Give feedback.
All reactions