-
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.
Answered by
YuukanOO
Nov 19, 2021
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.
1 reply
Answer selected by
YuukanOO
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.