IMPORT-001: imported file can't be read
Error: the page doesn't build until this is fixed.
The file in a use line doesn't exist, or can't be read. Paths are relative to the file that imports
them, so use "components/review-card.hypra" in pages/shoe.hypra means pages/components/review-card.hypra.
component ReviewCard(author: Text, text: Text) {
figure {
blockquote "{text}"
figcaption "{author}"
}
}Fails
use "components/reveiw-card.hypra"
page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.") {
h1 "Shoes"
}error[IMPORT-001]: can't read `components/reveiw-card.hypra`: No such file or directory (os error 2)
--> page.hypra:1:5
|
1 | use "components/reveiw-card.hypra"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= docs: https://hypralang.dev/rules/import-001/
1 error, 0 warningsFixed
use "components/review-card.hypra"
page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.") {
h1 "Shoes"
}