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

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

Closed
Matthijz98 opened this issue Jun 25, 2024 · 1 comment

Comments

@Matthijz98
Copy link

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
Copy link
Member

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

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