webpack can't find module if file named jsx

前端 未结 7 846
既然无缘
既然无缘 2020-11-28 06:43

As I write webpack.config.js like this

module.exports = {
  entry: \'./index.jsx\',
  output: {
    filename: \'bundle.js\'
  },
  module: {
    loaders: [{         


        
相关标签:
7条回答
  • 2020-11-28 07:11

    Verify, that bundle.js is being generated without errors (check the Task Runner Log).

    I was getting 'can't find module if file named jsx' due to the syntax error in html in component render function.

    0 讨论(0)
提交回复
热议问题