Installed the theme on local. Dev is running fine but on production build, following errors are coming:
11:59:21 pm [check] Checking files
11:59:22 pm [content] Types generated 369ms
β Getting diagnostics for Astro files in E:\npm\coliseo\β¦
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\PostSingle.astro:11:7 Hint: 'posts' is declared but its value is never read.
10 const allAuthors = await getSinglePage("authors");
11 const posts = await getSinglePage(blog_folder);
~~~~~
12 const { post } = Astro.props;
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\PostSingle.astro:33:29 Hint: 'i' is declared but its value is never read.
32 )
33 .map((author, i) => (
~
34 <a
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\PostSingle.astro:31:44 Error: Property 'data' does not exist on type 'unknown'.
30 .map((author: string) => slugify(author))
31 .includes(slugify(author.data.title))
~~~~
32 )
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\PostSingle.astro:35:52 Error: Property 'slug' does not exist on type 'unknown'.
34 <a
35 href={/authors/${slugify(author.slug)}
}
~~~~
36 class="flex items-center hover:text-primary"
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\PostSingle.astro:38:27 Error: Property 'data' does not exist on type 'unknown'.
37 >
38 {author.data.image && (
~~~~
39 <Image
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\PostSingle.astro:40:35 Error: Property 'data' does not exist on type 'unknown'.
39 <Image
40 src={author.data.image}
~~~~
41 alt={author.data.title}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\PostSingle.astro:41:35 Error: Property 'data' does not exist on type 'unknown'.
40 src={author.data.image}
41 alt={author.data.title}
~~~~
42 height={50}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\PostSingle.astro:47:33 Error: Property 'data' does not exist on type 'unknown'.
46 )}
47 {author.data.title}
~~~~
48
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\lib\contentParser.astro:6:53 Error: Property 'id' does not exist on type 'unknown'.
05 const allPage = await getCollection(collection);
06 const removeIndex = allPage.filter((data) => data.id.match(/^(?!-)/));
~~
07 const removeDrafts = removeIndex.filter((data) => !data.data.draft);
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\lib\contentParser.astro:7:59 Error: Property 'data' does not exist on type 'unknown'.
06 const removeIndex = allPage.filter((data) => data.id.match(/^(?!-)/));
07 const removeDrafts = removeIndex.filter((data) => !data.data.draft);
~~~~
08 return removeDrafts;
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\lib\taxonomyParser.astro:3:1 Hint: 'slugify' is declared but its value is never read.
02 import { getSinglePage } from "./contentParser.astro";
03 import { slugify } from "./utils/textConverter";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\lib\taxonomyParser.astro:8:56 Error: Property 'data' does not exist on type 'unknown'.
07 const singlePages = await getSinglePage(collection);
08 const taxonomyPages = singlePages.map((page) => page.data[name]);
~~~~
09 let taxonomies = [];
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\404.astro:8:7 Hint: 'logo' is declared but its value is never read.
08 const { logo } = config.site;
~~~~~~~~
09 const entry = await getEntryBySlug("pages", "404");
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\pricing.astro:33:53 Hint: 'i' is declared but its value is never read.
32 {
33 pricing.data.pricing_card.map((item: any, i: number) => (
~
34
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages[regular].astro:13:21 Error: Property 'slug' does not exist on type 'unknown'.
12 params: {
13 regular: page.slug,
~~~~
14 },
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog\index.astro:28:20 Error: Property 'data' does not exist on type 'unknown'.
27 <Base
28 title={blogIndex.data.title}
~~~~
29 meta_title={blogIndex.data.meta_title}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog\index.astro:29:25 Error: Property 'data' does not exist on type 'unknown'.
28 title={blogIndex.data.title}
29 meta_title={blogIndex.data.meta_title}
~~~~
30 description={blogIndex.data.description}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog\index.astro:30:26 Error: Property 'data' does not exist on type 'unknown'.
29 meta_title={blogIndex.data.meta_title}
30 description={blogIndex.data.description}
~~~~
31 image={blogIndex.data.image}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog\index.astro:31:20 Error: Property 'data' does not exist on type 'unknown'.
30 description={blogIndex.data.description}
31 image={blogIndex.data.image}
~~~~
32 >
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog\index.astro:36:40 Error: Property 'data' does not exist on type 'unknown'.
35
36
~~~~
37
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog[single].astro:2:1 Hint: 'Shape' is declared but its value is never read.
01 ---
02 import Shape from "@components/Shape.astro";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
03 import config from "@config/config.json";
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog[single].astro:13:20 Error: Property 'slug' does not exist on type 'unknown'.
12 params: {
13 single: post.slug,
~~~~
14 },
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\career\index.astro:14:49 Error: Property 'data' does not exist on type 'unknown'.
13 const careerIndex = await getEntryBySlug<any, string>("careers", "-index");
14 const { benifits, career, image } = careerIndex.data;
~~~~
15 const categories = await getTaxonomy("careers", "categories");
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\career\index.astro:18:22 Error: Property 'data' does not exist on type 'unknown'.
17 const page_data = {
18 title: careerIndex.data.title,
~~~~
19 page_title: careerIndex.data.page_title,
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\career\index.astro:19:27 Error: Property 'data' does not exist on type 'unknown'.
18 title: careerIndex.data.title,
19 page_title: careerIndex.data.page_title,
~~~~
20 content: careerIndex.body,
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\career\index.astro:20:24 Error: Property 'body' does not exist on type 'unknown'.
19 page_title: careerIndex.data.page_title,
20 content: careerIndex.body,
~~~~
21 };
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\career\index.astro:25:22 Error: Property 'data' does not exist on type 'unknown'.
24 <Base
25 title={careerIndex.data.title}
~~~~
26 meta_title={careerIndex.data.meta_title}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\career\index.astro:26:27 Error: Property 'data' does not exist on type 'unknown'.
25 title={careerIndex.data.title}
26 meta_title={careerIndex.data.meta_title}
~~~~
27 description={careerIndex.data.description}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\career\index.astro:27:28 Error: Property 'data' does not exist on type 'unknown'.
26 meta_title={careerIndex.data.meta_title}
27 description={careerIndex.data.description}
~~~~
28 image={careerIndex.data.image}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\career\index.astro:28:22 Error: Property 'data' does not exist on type 'unknown'.
27 description={careerIndex.data.description}
28 image={careerIndex.data.image}
~~~~
29 >
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\career[single].astro:16:20 Error: Property 'slug' does not exist on type 'unknown'.
15 params: {
16 single: post.slug,
~~~~
17 },
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\integrations\index.astro:17:23 Error: Property 'data' does not exist on type 'unknown'.
16 const page_data = {
17 ...integraionsIndex.data,
~~~~
18 content: integraionsIndex.body,
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\integrations\index.astro:18:29 Error: Property 'body' does not exist on type 'unknown'.
17 ...integraionsIndex.data,
18 content: integraionsIndex.body,
~~~~
19 };
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\integrations\index.astro:23:27 Error: Property 'data' does not exist on type 'unknown'.
22 <Base
23 title={integraionsIndex.data.title}
~~~~
24 meta_title={integraionsIndex.data.meta_title}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\integrations\index.astro:24:32 Error: Property 'data' does not exist on type 'unknown'.
23 title={integraionsIndex.data.title}
24 meta_title={integraionsIndex.data.meta_title}
~~~~
25 description={integraionsIndex.data.description}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\integrations\index.astro:25:33 Error: Property 'data' does not exist on type 'unknown'.
24 meta_title={integraionsIndex.data.meta_title}
25 description={integraionsIndex.data.description}
~~~~
26 image={integraionsIndex.data.image}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\integrations\index.astro:26:27 Error: Property 'data' does not exist on type 'unknown'.
25 description={integraionsIndex.data.description}
26 image={integraionsIndex.data.image}
~~~~
27 >
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\integrations[single].astro:17:20 Error: Property 'slug' does not exist on type 'unknown'.
16 params: {
17 single: post.slug,
~~~~
18 },
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\integrations[single].astro:28:33 Error: Property 'data' does not exist on type 'unknown'.
27 ...post.data,
28 index_title: integraionsIndex.data.title,
~~~~
29 slug: post.slug,
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\components\about\Gallery.astro:47:9 Hint: 'shuffleInstance' is declared but its value is never read.
46 // Assumes you're using the UMD version of Shuffle (for example, from unpkg.com).
47 const shuffleInstance = new Shuffle(element, {
~~~~~~~~~~~~~~~
48 itemSelector: ".picture-item",
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\components\about\Gallery.astro:49:5 Error: Type 'Element' is not assignable to type 'string | HTMLElement'.
Type 'Element' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, dir, and 122 more.
48 itemSelector: ".picture-item",
49 sizer: sizer,
~~~~~
50 columnWidth: 1,
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\layouts\components\about\Works.astro:3:1 Hint: 'Button' is declared but its value is never read.
02 import { Image } from "@astrojs/image/components";
03 import Button from "@shortcodes/Button";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
04 const {
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog\page[slug].astro:40:26 Error: Property 'data' does not exist on type 'unknown'.
39 const page_data = {
40 index_title: blogIndex.data.title,
~~~~
41 slug: page / ${slug}
,
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog\page[slug].astro:46:20 Error: Property 'data' does not exist on type 'unknown'.
45 <Base
46 title={blogIndex.data.title}
~~~~
47 meta_title={blogIndex.data.meta_title}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog\page[slug].astro:47:25 Error: Property 'data' does not exist on type 'unknown'.
46 title={blogIndex.data.title}
47 meta_title={blogIndex.data.meta_title}
~~~~
48 description={blogIndex.data.description}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog\page[slug].astro:48:26 Error: Property 'data' does not exist on type 'unknown'.
47 meta_title={blogIndex.data.meta_title}
48 description={blogIndex.data.description}
~~~~
49 image={blogIndex.data.image}
11:59:24 pm [diagnostics]
e:\npm\coliseo\src\pages\blog\page[slug].astro:49:20 Error: Property 'data' does not exist on type 'unknown'.
48 description={blogIndex.data.description}
49 image={blogIndex.data.image}
~~~~
50 >
11:59:24 pm [diagnostics] Result (51 files):
- 39 errors
- 0 warnings
- 8 hints