ngx-admin: Error: HtmlWebpackPlugin: could not load file

  • I’m submitting a … [x ] bug report [ ] feature request [ ] question about the decisions made in the repository

  • Do you want to request a feature or report a bug? Report a bug

  • What is the current behavior? It compiles, but doesnt really work…

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via or similar (you can use this template as a starting point:

  • What is the expected behavior? The expected behaviour is that it should work

  • What is the motivation / use case for changing the behavior?

  • Please tell us about your environment: Latest commit @ Windows, Node 7.5.0

  • Angular version: 2.0.0-rc.X
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

`Html Webpack Plugin: Error: HtmlWebpackPlugin: could not load file C:\Users\PerArneA\IdeaProjects\s ondre-prosjekt\dll\

  • index.js:313 [sondre-prosjekt]/[html-webpack-plugin]/index.js:313:27

  • util.js:16 tryCatcher [sondre-prosjekt]/[bluebird]/js/release/util.js:16:23

  • promise.js:510 Promise._settlePromiseFromHandler [sondre-prosjekt]/[bluebird]/js/release/promise.js:510:31

  • promise.js:567 Promise._settlePromise [sondre-prosjekt]/[bluebird]/js/release/promise.js:567:18

  • promise.js:612 Promise._settlePromise0 [sondre-prosjekt]/[bluebird]/js/release/promise.js:612:10

  • promise.js:687 Promise._settlePromises [sondre-prosjekt]/[bluebird]/js/release/promise.js:687:18

  • async.js:133 Async._drainQueue [sondre-prosjekt]/[bluebird]/js/release/async.js:133:16

  • async.js:143 Async._drainQueues [sondre-prosjekt]/[bluebird]/js/release/async.js:143:10

  • async.js:17 Immediate.Async.drainQueues [sondre-prosjekt]/[bluebird]/js/release/async.js:17:14 `

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 7
  • Comments: 24 (5 by maintainers)

Commits related to this issue

Most upvoted comments

The problem is a wrong configuration of add-asset-html-webpack-plugin ( So, either you generate some source maps or turn it off (parameter: includeSourcemap, default: true)

Solved by creating empty files and in dll folder.

@loxy Thanks, this is correct

      filepath: path.resolve(__dirname,'../client/build/*.js'),
      includeSourcemap: false // add this parameter

me too facing same issue @LexZhukov

@LexZhukov thanks for your last commit, I also put these changes and it helped me!

@perara try to check the latest update from the develop branch. Also, reinstall dependencies and remove the dll folder.