insin / nwb

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)
Other
5.57k stars 331 forks source link

Build succeeding with nwb v0.8.1 fails with v0.9.2 #86

Closed chprasad closed 8 years ago

chprasad commented 8 years ago

I have a build that was succeeding with nwb v0.8.1 now failing with v0.9.1. Here is the error message. Appreciate any pointers.

$ nwb -v
v0.9.2
$ nwb build
nwb: clean-app
nwb: build-react-app
Hash: 19558621384f1c89702a
Version: webpack 1.12.14
Time: 36049ms
                                      Asset      Size  Chunks             Chunk Names
                                     app.js    4.2 kB       1  [emitted]  app
  glyphicons-halflings-regular.f4769f9b.eot   20.1 kB          [emitted]  
  glyphicons-halflings-regular.e18bbf61.ttf   45.4 kB          [emitted]  
 glyphicons-halflings-regular.fa277232.woff   23.4 kB          [emitted]  
glyphicons-halflings-regular.448c34a5.woff2     18 kB          [emitted]  
                                  vendor.js    132 kB       0  [emitted]  vendor
  glyphicons-halflings-regular.89889688.svg    109 kB          [emitted]  
                                    app.css    118 kB       1  [emitted]  app
                              vendor.js.map   1.55 MB       0  [emitted]  vendor
                                 app.js.map   18.2 kB       1  [emitted]  app
                                app.css.map  84 bytes       1  [emitted]  app
                                 index.html   2.08 kB          [emitted]  

ERROR in   Error: Child compilation failed:
  Entry module not found: Error: Cannot resolve 'file' or 'directory' /web/front-end/webfe/src/index.html in /web/front-end/webfe:
  Error: Cannot resolve 'file' or 'directory' /web/front-end/webfe/src/index.html in /web/front-end/webfe

  - compiler.js:78 
    [lib]/[nwb]/[html-webpack-plugin]/lib/compiler.js:78:16

  - Compiler.js:214 Compiler.<anonymous>
    [lib]/[nwb]/[webpack]/lib/Compiler.js:214:10

  - Compiler.js:403 
    [lib]/[nwb]/[webpack]/lib/Compiler.js:403:12

  - Tapable.js:67 Compiler.next
    [lib]/[nwb]/[tapable]/lib/Tapable.js:67:11

  - CachePlugin.js:40 Compiler.<anonymous>
    [lib]/[nwb]/[webpack]/lib/CachePlugin.js:40:4

  - Tapable.js:71 Compiler.applyPluginsAsync
    [lib]/[nwb]/[tapable]/lib/Tapable.js:71:13

  - Compiler.js:400 Compiler.<anonymous>
    [lib]/[nwb]/[webpack]/lib/Compiler.js:400:9

  - Compilation.js:577 Compilation.<anonymous>
    [lib]/[nwb]/[webpack]/lib/Compilation.js:577:13

  - Tapable.js:60 Compilation.applyPluginsAsync
    [lib]/[nwb]/[tapable]/lib/Tapable.js:60:69

  - Compilation.js:572 Compilation.<anonymous>
    [lib]/[nwb]/[webpack]/lib/Compilation.js:572:10

  - Tapable.js:67 Compilation.next
    [lib]/[nwb]/[tapable]/lib/Tapable.js:67:11

  - UglifyJsPlugin.js:140 Compilation.<anonymous>
    [lib]/[nwb]/[webpack]/lib/optimize/UglifyJsPlugin.js:140:4

  - Tapable.js:71 Compilation.applyPluginsAsync
    [lib]/[nwb]/[tapable]/lib/Tapable.js:71:13

  - Compilation.js:567 Compilation.<anonymous>
    [lib]/[nwb]/[webpack]/lib/Compilation.js:567:9

  - Tapable.js:60 Compilation.applyPluginsAsync
    [lib]/[nwb]/[tapable]/lib/Tapable.js:60:69

  - Compilation.js:563 Compilation.<anonymous>
    [lib]/[nwb]/[webpack]/lib/Compilation.js:563:8
insin commented 8 years ago

As per the Versioning section in the README, 0.x releases may contain breaking changes - check the release notes for 0.9.0 for breaking changes and upgrade instructions

chprasad commented 8 years ago

Thanks. That helps. Will use the upgrade instructions.