Undefined split in index.js and throw error in webpack bootstrap

Hi everyone i just enccounter a weird reactJS error while building my project alert error message prom after adding “child_process”: false into falback of webpack.config.js to fix the error child_process undefined:

enter image description here

and another error

enter image description here
locate in index.js in node_modules > nodemon > lib > utils > index.js
and in webpack folder

It seem to occur at line with the context of using split for undefined value i think

    var noop = function () { };
    var path = require('path');
    const semver = require('semver');
    var version = process.versions.node.split('.') || [null, null, null];

At first i try to debug by simply delete process.versions.node.split(‘.’)

result into change:

    var version = [null, null, null];
    var version = [0, 0, 0];

2 post having the similar error that i follow is
post 1

post 2

I try according to issue #120

    var version = process.version.node.split('.') || [null, null, null]; //post 1
    var current = process.versions && process.versions.node && process.versions.node.split('.') || 
    []; //post 2

i noticed that the browser (Chrome) still alert error in it system as

    var version = process.versions.node.split('.') || [null, null, null];

After that i ask copilot and GPT, they said that my application was being poorly configure lead to let my webpack.config.js modified my nodemone (i use CRA to create project) and should include

    externals: {
      nodemon: 'nodemon'
    },

in module.exports in webpack.config.js to tell webpack to not modify the nodemon but nothing change.

but again nothing much change. I didn’t try npm install resolve because i believe that my problem didn’t come from resolve because i did debug webpack breaking change error “Undefinded fs” by adding fallback fs: false but i will try if you guys think other wise