0
我有一個文件調用abc.jsx這樣的WebPack配置不要求工作()中的node.js
var MyTitle = require('./MyTitle')
but I have to do require('./MyTitle)
怎麼我運行的WebPack它扔我的錯誤。
ERROR in ./js/MyTitle.jsx
Module not found: Error: Cannot resolve 'file' or 'directory' ./MyTitle in /Users/username/Documents/intro-to-react/js
@ ./js/MyTitle.jsx 5:14-34