node-require-directory
node-require-directory copied to clipboard
’require-directory‘ and ‘path’ are packaged via webpack exception
After running the webpack package file, an exception 【throw new ERR_INVALID_ARG_TYPE(name, 'string', value)】 is thrown, causing the file to fail to run.
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined