That is a syntax error meaning the "then' statement is missing from the line. Double check your edit. Because NitrogenMap.lua has a syntax error it does not compile, which is why you get the second error.
alright I found my mistake and got it so it doesn’t show an error anymore. I will play my map and see if it works or if anything comes up in the future.
The only warning I have now for precision farming is
Warning: DebsityMapVisualizationOverlay is being reset, because a DensityMapFilter it refers to was deleted.
Again thank you for helping me out!