Describe the bug
The error occurs at the following location.
The following is part of the code that was compiled from Reflex to React.
// .web/app/routes/[test].[menu1].[menu2].[filter]._index.jsx
import { Event, getRefValue, getRefValues, isTrue, refs, set_val } from "$/utils/state"
I’m currently encountering the following error.
The error occurred because the module /utils/state.js?t=1753760554100 does not contain a named export called set_val, even though it was imported.
SyntaxError: The requested module '/utils/state.js?t=1753760554100' does not provide an export named 'set_val'
After checking the internal code of Reflex, it seems that /utils/state.js is a static source file (not compiled or generated dynamically), and currently does not export a function named set_val.
https://github.com/reflex-dev/reflex/blob/main/reflex/.templates/web/utils/state.js
Request for Confirmation
- Is set_val a function that is supposed to be added to
/utils/state.js?
- Or is there another reason this error might be occurring?
Specifics
- Python Version:
3.11.13
- Reflex Version:
0.8.4
- OS:
Ubuntu 22.04
- Browser:
Chrome