blazekids
blazekids
SSolidJS
Created by blazekids on 12/23/2024 in #support
SolidStart: serialization error when there is a default value in `createSignal`
Hello, I am trying to learn solid with the async resource tutorial: https://www.solidjs.com/tutorial/async_resources but with an api route in the app. The api route is just a simple GET with the same thing. I created https://github.com/mingchia-andy-liu/solidjs-test as MVP. Whenever there is a default value in my component. npm run dev will throw an error.
cause: j [Error]: Seroval caught an error during the parsing process.
Error
The value [object Function] of type "function" cannot be parsed/serialized.
cause: j [Error]: Seroval caught an error during the parsing process.
Error
The value [object Function] of type "function" cannot be parsed/serialized.
However, if I start dev mode without a default value, then edit the file after. The hot module reload would successfully compile the component. Problematic line: https://github.com/mingchia-andy-liu/solidjs-test/blob/b73e90ae7429380b9dbc03b0c7aabd792094a115/src/routes/index.js#L17 I am not sure what could be causing this issue. Preset is cloudflare module as I want to deploy this in cloudflare. I am not sure if this changes anything.
12 replies