TheSadMidDeveloper
How to load islands in Fresh 2.0 plugins?
It errors here https://github.com/denoland/fresh/blob/e0f65319cd48753f5b9b4784f996a0eaf7e6ebff/src/dev/builder.ts#L196
15 replies
How to load islands in Fresh 2.0 plugins?
Let me check how I can share the code, but basically I tried creating a fresh project again
1.
deno run -Ar jsr:@fresh/init@2.0.0-alpha.21
2. Added a folder named (whatever
) with 2 files - (SomeComponent.tsx
, mod.ts
)
3. Create a plugin that adds it as island
SomeComponent
is a default export, just a button with an onClick
action.
mod.ts
exports SomeComponent
as named component
The plugin
and the dev.ts
file
and running deno task dev
already throws an error:
15 replies