Economics is not based on solid science, especially not macroeconomics. There is no way to run proper experiments and have counterfactuals. So it ends up being mostly opinions wrapped into a 3 variables linear regression fitted on 4 data points.
"Many empirical controversies in economics are essentially disputes about whether or not certain variables constitute valid instruments" - Econometric Theory and Methods, Davidson & MacKinnon
Pretty broad statement. Some micro-economic theories, like the game theoretic models in auction theory, contract theory, mechanism design and behavioral economics are probably the most successful, accurate and impactful theories in all of social sciences, including psychology.
You may not realize how much your buying behavior, your salary, your interactions online and your use of technology are dependent on these models.
But comparing their success and use to fields like sociology, management and even psychology, their track record is frankly amazing.
We already know that Macroeconomics amounts to modeling systems that do not aggregate meaningfully from these successful micro-models.
Saying economics is not a science based on this, is like saying physics is not a science because we still can not find a unified theory. Which is a pretty good analogy for a Macroeconomic model that forecasts GDP (aka, everything).
The difference is that you don't try to act on the cosmology models to change the way galaxies behave. Most of practical economics tries to derive policies or make choices out of its models.
That's irrelevant as far as the designation of "science" is concerned. This is a question of knowledge and certainty, not practical application. The point is that results in cosmology (and other fields) are very well confirmed despite the fact that they don't come out of strict experimentation. In that same vein, when someone denies that economics is a science I'd argue they're really talking about whether its results are robust, not whether economics uses a certain methodology or is put to certain ends.
On the contrary, cosmology is based on physics (gravitation, Maxwell equations & so on) and a good bit of chemistry. 99% of the knowledge used in cosmology is based on science science developed and tested "in vitro" on Earth.
"Many empirical controversies in economics are essentially disputes about whether or not certain variables constitute valid instruments" - Econometric Theory and Methods, Davidson & MacKinnon