ModusCreateOrg/react-dynamic-route-loading-es6

error: options/query provided without loader (use loader + options) in {

kimown opened this issue · 2 comments

After I pull the project, when I run npm run start, the error occurs, log is here

Error: options/query provided without loader (use loader + options) in {
  "test": {},
  "use": "file-loader",
  "query": {
    "name": "[name].[ext]"
  }
}

so I think the . html rule

should be

      {
        test: /\.html$/,
        use: [{
          loader:'file-loader',
          query: {
            name: '[name].[ext]'
          }
        }],
      },

Finally, thank you for you example. 😄

grgur commented

You're right, I need to align it with the new Webpack release.

grgur commented

Fixed that and upgraded all packages. Thanks for reporting!