While running a yarn build, an infinite loop was induced with below warning:
(node:7424) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56 parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
Warning, the following targets are using a decimal version:
node: 6.5
We recommend using a string for minor/patch versions to avoid numbers like 6.10 getting parsed as 6.1, which can lead to unexpected behavior.
Error screenshot:

If you need any file/code, please comment - I'll add them. I couldn't understand the issue, so I did not include any code.
Without your
package.jsonit's hard to tell where exactly the problem is.If your version for your package (or any of the dependencies) isn't using a semantic versioning (for example 6.10.0 instead of just 6.10 which might get trimmed to 6.1) then that is what is causing the problem.
When the error mentions minor/patch it is referring to the numbers separated by dots/periods
..
More about this can be found here: https://semver.org/
and here https://docs.npmjs.com/about-semantic-versioning