Open tclain-pillar opened 1 week ago
Does this example help? https://github.com/dai-shi/waku/tree/main/examples/13_path-alias
Hi ! the example works but uses the low level API with defineEntries (I don't see any docs, the API is a bit cryptic)
as soon as using the pages directory with the minimal steps above. it does fail
Hmm, it looks like more complicated than I thought. I wonder if @himself65 has any ideas.
(I don't see any docs, the API is a bit cryptic)
Well, it's not for everybody, but I would like to learn how it feels cryptic... The docs are https://github.com/dai-shi/waku/blob/main/docs/minimal-api.mdx, but it's also "minimal". I agree it's not super developer friendly, because it's not.
When trying to import a client component using typescript path alias, I get the following error on screen
The main page displays for a second then fails with the error above.
The console has this error:
pnpm build gives:
Reproduction
I repro-ed with the following steps
pnpm create waku@latest
Change
to
Things I tried:
resolve.alias
directly. fails as soon as I import a client componentrepro repo: https://github.com/tclain-pillar/repro-waku-ts-paths