Hello,
The process.env.PWD is used at least 3 times in this project. On my work machine (Windows 7, node v6) this variable is undefined and cause an error with webpack (Module build failed. Type Error: Path must be a string. Received undefined from src/utils/buildMessageBlocks.js#L21).
I think the way to go is to use process.cwd() which will always return a value although not the same thing as PWD.
Here is my quickfix at the top of my webpack.config.json waiting for a fix for those interested
if (!process.env.PWD) {
process.env.PWD = process.cwd();
}
Hello,
The
process.env.PWDis used at least 3 times in this project. On my work machine (Windows 7, node v6) this variable is undefined and cause an error with webpack (Module build failed. Type Error: Path must be a string. Received undefinedfrom src/utils/buildMessageBlocks.js#L21).I think the way to go is to use
process.cwd()which will always return a value although not the same thing asPWD.Here is my quickfix at the top of my
webpack.config.jsonwaiting for a fix for those interested