Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't fetch from local #51

Open
estudiooka opened this issue Apr 1, 2022 · 1 comment
Open

Can't fetch from local #51

estudiooka opened this issue Apr 1, 2022 · 1 comment

Comments

@estudiooka
Copy link

estudiooka commented Apr 1, 2022

/assets/data.json
{ "id": 1, "name": "Leanne Graham" }

/index.html

<fetch url="./assets/data.json">
{{ response.name }}}
</fetch>

Returns:
ReferenceError: response is not defined

How to fetch a local json ?

@Scrum
Copy link
Member

Scrum commented May 19, 2022

@estudiooka Hi, need more context on the issue.

I see a test that passes successfully

test('It works with local file', async t => {
await process(t, 'local-src')
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants