Unrecognized value. Skipped inserting #771
-
i create simple dummy app from graphql query can help me , thanks :)
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
result.forEach((p)=>{
setPost({mid:p.id,mtitle:p.title})
}) This is your issue. The solutions: const posts = [];
result.forEach((p)=>{
posts.push({mid:p.id,mtitle:p.title})
})
setPost(posts); or setPost(result.map((p) => ({mid:p.id,mtitle:p.title}))); |
Beta Was this translation helpful? Give feedback.
-
i get the same error with function App() {
return <div>{async () => await (await fetch(window.location)).text()}</div>
}
fix: import { createEffect, createSignal } from "solid-js"
function App() {
const [value, setValue] = createSignal("")
createEffect(async () => {
setValue(await (await fetch(window.location)).text())
})
return <div>{value}</div>
} |
Beta Was this translation helpful? Give feedback.
-
I'm trying out your tutorial and I encounter the above message with error_boundary.
I insert the above component into App.tsx and it fails to insert the error with the message "Unrecognized value.". Any suggestions? |
Beta Was this translation helpful? Give feedback.
This is your issue. The solutions:
or