Closed vangansenwillem closed 4 weeks ago
@vangansenwillem I can't reproduce this error here. Could you create a repo for us?
My attempt to reproduce the error:
component-poc.zip Copy of a newly created event catalog with this error.
Let a new line between the import
and the content ;
---
id: Orders
name: Orders
version: 0.0.2
owners:
- dboyne
services:
- id: InventoryService
version: 0.0.2
- id: NotificationService
version: 0.0.2
- id: OrdersService
version: 0.0.2
badges:
- content: New domain
backgroundColor: blue
textColor: blue
---
import Footer from '@catalog/components/footer.astro';
{/* Give a new line between the content and the imports */}
## Overview
And remove the <Footer />
from here.
---
import config from "@config";
---
Hello World
<div class="w-full text-right">
<span class="italic text-gray-300"
>Event-driven architecture documentation: {config.organizationName}</span
>
</div>
<Footer /> {/* Remove me =). I'm not defined */}
Thanks now it works, don't know why i did it like that, thanks for the help! It might be useful though to mention explicitly that we need a new line between the content and the imports in the documentation.
Description:
As a user, I encountered the "Could not parse import/exports with acorn" error after adding a custom footer component and integrating it into the Orders domain.
Event Catalog Version: 2.4.0
Steps to Reproduce:
Initiate Event Catalog:
Create Footer Component:
components
in the root directory.Add a file named
footer.astro
inside thecomponents
folder with the following content:Modify Orders Domain:
Replace the content of the
Orders
domain with the following:Start the Event Catalog:
Expected Behavior:
The Event Catalog should start successfully, and the custom footer component should be displayed on the Orders domain page.
Actual Behavior:
An error message is displayed: "Could not parse import/exports with acorn." This error occurs immediately after navigating to the Event Catalog.