Using Rails 6
I have a folder like so app/client/javascript/config/editor/syntax-highlighting
2 files in there.
app/client/javascript/config/editor/syntax-highlighting/math-mode.js
app/client/javascript/config/editor/syntax-highlighting/units-regex.js
When I deploy to production there error message is:
Wrong constant name Syntax-Highlighting inferred by Module from directory (Zeitwerk::NameError)
And it gives a path to that directory.
app/client/javascript/config/editor/syntax-highlighting
What is the cause of this error?