aleph.js icon indicating copy to clipboard operation
aleph.js copied to clipboard

Build fails because {file}.tailwind.css.bundling.js was not found

Open Laegel opened this issue 3 years ago • 0 comments
trafficstars

Hey guys, thanks for Aleph.js!

I'm using a custom version of @ije 's Windi CSS plugin but it shouldn't have an impact here.

In the generated module /app/.aleph/production/app.bundling.js, you can see the first import:

import "./app.tailwind.css.bundling.js";const { default: __ALEPH__Head  } = __ALEPH__.pack["https://deno.land/x/[email protected]/framework/react/components/Head.ts"];
...

I don't understand where these import "./app.tailwind.css.bundling.js"; come from, leaving them empty doesn't prevent the app to be built and displays properly. My workaround so far was to create these missing modules manually then rebuild but it seems I can't do that anymore (they get removed before the code is executed).

How can I get rid of these imports or create dummy files on the fly before the generated code is executed? Or maybe there's a better thing to do?

Laegel avatar Dec 30 '21 14:12 Laegel