[cooking@1.5.0] - Failed to read the config.
[cooking@1.5.0] - TypeError: str.indexOf is not a function
at wrapComment (/home/huazhu/my-project/node_modules/webpack/lib/BannerPlugin.js:9:9)
at new BannerPlugin (/home/huazhu/my-project/node_modules/webpack/lib/BannerPlugin.js:15:44)
at module.exports (/home/huazhu/my-project/config/base.js:29:32)
at Object. (/home/huazhu/my-project/cooking.conf.js:5:11)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at module.exports (/usr/lib/node_modules/cooking-cli/node_modules/cooking/util/load-config.js:18:14)
at program.config.forEach.config (/usr/lib/node_modules/cooking-cli/node_modules/cooking/bin/cooking-watch:26:12)
at Array.forEach (native)
at Object. (/usr/lib/node_modules/cooking-cli/node_modules/cooking/bin/cooking-watch:25:16)
at Module._compile (module.js:571:32)
cooking version
1.5.0
What is Expected?
What is actually happening?
[cooking@1.5.0] - Failed to read the config. [cooking@1.5.0] - TypeError: str.indexOf is not a function at wrapComment (/home/huazhu/my-project/node_modules/webpack/lib/BannerPlugin.js:9:9) at new BannerPlugin (/home/huazhu/my-project/node_modules/webpack/lib/BannerPlugin.js:15:44) at module.exports (/home/huazhu/my-project/config/base.js:29:32) at Object. (/home/huazhu/my-project/cooking.conf.js:5:11)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at module.exports (/usr/lib/node_modules/cooking-cli/node_modules/cooking/util/load-config.js:18:14)
at program.config.forEach.config (/usr/lib/node_modules/cooking-cli/node_modules/cooking/bin/cooking-watch:26:12)
at Array.forEach (native)
at Object. (/usr/lib/node_modules/cooking-cli/node_modules/cooking/bin/cooking-watch:25:16)
at Module._compile (module.js:571:32)