require目录,控制台会提示 Error: Cannot find module 'xxxx'

require(‘目录名’),并不能自动require到该目录下的index.js文件?

不会,creator 需要精确到文件名