troygoode / node-require-directory

Recursively iterates over specified directory, requiring each file, and returning a nested hash structure containing those libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

’require-directory‘ and ‘path’ are packaged via webpack exception

boluo1230 opened this issue · comments

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