sveltejs / realworld

SvelteKit implementation of the RealWorld app
https://realworld.svelte.dev
MIT License
2.24k stars 353 forks source link

bug: trying to call a `json` variable that is a string — instead of a function #124

Closed asciidiego closed 2 years ago

asciidiego commented 2 years ago

Context

In the following file on line 11 you have a return json( ... statement.

However, json is in the local scope of the function and it's a string. Did you mean to import the json function from @sveltejs/kit?

benmccann commented 2 years ago

thank you. fixed here: https://github.com/sveltejs/realworld/commit/26d44c943b43d7e72e4e9ed786268a72f157f8cd