Closed mcrascal closed 2 years ago
Wouldn't describe this as minimum code example, but this will repro it for me:
git clone https://github.com/evidence-dev/demo
cd demo
npm install
npm run dev
This is not super helpful, but I can remove the error if I delete the composed chart from /customer/NPS_survey
ie remove from line 80-87:
<Chart
data={data.nps_over_time}
title='Average NPS Score and # of Reviews (2019 - 2022)'
subtitle='#,#' >
<Line y=nps_avg/>
<Bar y=review_count/>
</Chart>
EDIT: I just need to remove the space in the chart component to remove the error. The below does not throw an error:
<Chart
data={data.nps_over_time}
title='Average NPS Score and # of Reviews (2019 - 2022)'
subtitle='#,#' >
<Line y=nps_avg/>
<Bar y=review_count/>
</Chart>
I get the same error on http://localhost:3000/operations/pick_lists
I can remove this error by deleting the {#each} block:
{#each data.last_7_days_orders as day}
- [{day.order_date}](/operations/pick_lists/{day.order_date}/)
{/each}
I was able to reproduce the issues with those steps - thanks @archiewood.
I found there was some character in the whitespace that caused the markdown parser to treat the next lines as a query. It worked if I deleted the whitespace, then re-added it myself.
On second thought, it looks like it might have something to with the number of tabs in front of a component
This really narrows it down, thanks @archiewood @hughess
This was a little tricky, so just documenting:
Will test with the edit: seems to resolve that as well{#each }
block scenario above in the AM to confirm
"untitled query" errors occasionally throw during
build
.@archiewood do you have any tips on reproducing this?