Thinkmill / keystatic

First class CMS experience, TypeScript API, Markdown & YAML/JSON based, no DB
https://keystatic.com
MIT License
1.02k stars 68 forks source link

'/node_modules/lodash/debounce.js?v=1a485ea4' does not provide an export named 'default' #1193

Open Matthijz98 opened 1 week ago

Matthijz98 commented 1 week ago

I am trying to migrate to the new content components but as soon as i add a wrapper, block or inline Keystatic stops working image That points to this import import debounce from "/node_modules/lodash/debounce.js?v=1a485ea4"; I am on the newest version of Astro, Keystatic and the Keystatic Astro intergration.

This is the config:

const blocks = {
    Lichtkarakter: block({
        label: 'Lichtkarakter',
        schema: {
            karakter: fields.text({label: 'Karakter'}),
        },
    }),
}
....
content: fields.markdoc({
    label: 'Content',
    extension: 'mdoc',
    options: {
        image: {
            directory: `src/assets/${col.path}/images/`,
            publicPath: `@assets/${col.path}/images/`,
            schema: {
                title: fields.text({
                    label: 'Caption',
                    description:
                        'The text to display under the image',
                }),
            },
        },
    },
    components: blocks,
}),
....
emmatown commented 1 week ago

I can't reproduce this, could you provide a GitHub repository that reproduces the issue?