You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] /path/app/views/common/templateNotFound.scala.xml:4: value raw is not a member of String
[error] The template or the format does exist
[error] ^
[error] one error found
error Compilation failed
View did not compile with variables @(template: String, format: String) and compiled with variable names @(badTemplate: String, badFormat: String)
I also had to rename String variable format to outputFormat to avoid this issue
The text was updated successfully, but these errors were encountered:
intracer
changed the title
Value Raw is not a member of String error with variable named format
Value Raw is not a member of String error with variable named format present
Aug 5, 2016
Sometimes variable names lead to this misterious error
Here is example that I found on the internet http://www.ethanjoachimeldridge.info/tech-blog/value-raw-not-member-string-scala
[error] /path/app/views/common/templateNotFound.scala.xml:4: value raw is not a member of String
[error] The template or the format does exist
[error] ^
[error] one error found
error Compilation failed
View did not compile with variables
@(template: String, format: String)
and compiled with variable names@(badTemplate: String, badFormat: String)
I also had to rename String variable
format
tooutputFormat
to avoid this issueThe text was updated successfully, but these errors were encountered: