What would be a good method to diagnose
precompile target: desktop_theme
rake aborted!
NoMethodError: undefined method `resolve_baked_field' for nil:NilClass
?
The user csmu encountered a NoMethodError: undefined method resolve_baked_field’ for nil:NilClassduring theme precompilation. [sam](/t/-/109618/2) suggested updating to the latest version and disabling themes one by one to isolate the issue. [csmu](/t/-/109618/1) confirmed they were on the latest version vialauncher rebuild app. When asked how to disable themes on a non-running instance, [csmu](/t/-/109618/1) found a solution from a similar issue: adding DONT_PRECOMPILE_CSS: 1toapp.yml`, rebuilding, selecting a default theme, and then removing the variable. This resolved the issue csmu.
What would be a good method to diagnose
precompile target: desktop_theme
rake aborted!
NoMethodError: undefined method `resolve_baked_field' for nil:NilClass
?
Step
would be to be on latest, are you?
After that I would disable theme by theme to find which is the problem one.
Yes .. this was bulk standard
./launcher rebuild app
on a staging site which as I understand it gets the latest version.
How do you disable themes on an instance that is not running?
Does it give you more than that? Typically, there’s a backtrace there.
Based on the solution another post with a similar issue.
I did the following
DONT_PRECOMPILE_CSS: 1 to /var/discourse/containers/app.yml/var/discourse/launcher rebuild app which workedDONT_PRECOMPILE_CSS: 1 in /var/discourse/containers/app.yml/var/discourse/launcher rebuild app again, which worked.