QwikDev / astro

Qwik + Astro integration
217 stars 13 forks source link

Can't build #136

Closed lajbel closed 5 months ago

lajbel commented 5 months ago

Versions: Using pnpm

"@qwikdev/astro": "^0.5.16",
"@types/node": "20",
"astro": "^4.10.3",
"@builder.io/qwik": "1.5.6",

Command runned: astro build

Cannot find module '/home/lajbel/gh/kaplay-site/dist/renderers.mjs' imported from /home/lajbel/gh/kaplay-site/node_modules/.pnpm/astro@4.10.3_@types+node@20.14.8_typescript@5.5.2/node_modules/astro/dist/core/build/generate.js

Astro config:

import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import qwik from "@qwikdev/astro";
import astroMetaTags from "astro-meta-tags";
import robotsTxt from "astro-robots-txt";
import { defineConfig } from "astro/config";
import { defineConfig, passthroughImageService } from "astro/config";

// https://astro.build/config
export default defineConfig({
    site: "https://kaplayjs.com",
    integrations: [
        qwik(),
        mdx(),
        tailwind(),
        astroMetaTags(),
        robotsTxt(),
        sitemap(),
    ],
    srcDir: "src",
    server: {
        port: 3200,
    },
    image: {
        service: passthroughImageService(),
    },
});

Looks like someone had the same issue https://github.com/withastro/astro/issues/11259

lajbel commented 5 months ago

It was fixed downgrading Qwik, as other issues mentioned

thejackshelton commented 5 months ago

Closing as duplicate. Will be fixed when next version is released in Qwik.