-
Hi there! Awesome work! I'm currently testing iles out to see if it would fit my needs and I'm impressed. I just got one question about data fetching. I attempted to do something like this (as if I was getting data from an headless CMS): <script setup lang="ts">
const todo = await fetch("https://jsonplaceholder.typicode.com/todos/1").then(
(r) => r.json()
);
</script>
<template>
<h1>{{ todo.title }}</h1>
</template> And while it works as expected in dev mode, when running |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ok nevermind, I was just dumb. I forgot that node does not come with |
Beta Was this translation helpful? Give feedback.
Ok nevermind, I was just dumb. I forgot that node does not come with
fetch
so it can't work without relying on another module such as node-fetch or isomorphic-fetch.