blazekids
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.
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