{"id":139,"date":"2019-04-13T21:54:03","date_gmt":"2019-04-13T13:54:03","guid":{"rendered":"http:\/\/www.sttxx.com\/?p=139"},"modified":"2019-04-13T21:56:05","modified_gmt":"2019-04-13T13:56:05","slug":"module-not-found-error","status":"publish","type":"post","link":"http:\/\/www.sttxx.com\/index.php\/2019\/04\/13\/module-not-found-error\/","title":{"rendered":"Module not found: Error: Can&#8217;t resolve\u9519\u8bef\u5904\u7406"},"content":{"rendered":"\n<p>webpack\u7248\u672c\uff1a4.29.6<\/p>\n\n\n\n<p>\u9519\u8bef\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u279c  webpack node_modules\/.bin\/webpack app\/main.js public\/bundle.js<br> Hash: 422d13339e0d441f0af9<br> Version: webpack 4.29.6<br> Time: 85ms<br> Built at: 2019\/04\/12 \u4e0b\u534810:52:37<br>  1 asset<br> Entrypoint main = main.js<br> [0] multi .\/app\/main.js public\/bundle.js 40 bytes {0} [built]<br> [1] .\/app\/main.js 97 bytes {0} [built]<br> [2] .\/app\/greeter.js 145 bytes {0} [built]<br> <a href=\"webpack\">3<\/a>\/buildin\/module.js 497 bytes {0} [built]<br> WARNING in configuration<br> The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.<br> You can also set it to 'none' to disable any default behavior. Learn more: https:\/\/webpack.js.org\/concepts\/mode\/<br> ERROR in multi .\/app\/main.js public\/bundle.js<br> Module not found: Error: Can't resolve 'public\/bundle.js' in '\/Users\/shan\/code\/my\/something_new\/webpack'<br>  @ multi .\/app\/main.js public\/bundle.js main[1]<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\u89e3\u51b3\u65b9\u6848\uff1a\u6267\u884c\u547d\u4ee4\u6539\u4e3anode_modules\/.bin\/webpack app\/main.js <strong>--output<\/strong> public\/bundle.js<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>webpack\u7248\u672c\uff1a4.29.6 \u9519\u8bef\u5185\u5bb9\u5982\u4e0b\uff1a \u279c webpack node_<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[38],"tags":[39],"_links":{"self":[{"href":"http:\/\/www.sttxx.com\/index.php\/wp-json\/wp\/v2\/posts\/139"}],"collection":[{"href":"http:\/\/www.sttxx.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sttxx.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sttxx.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sttxx.com\/index.php\/wp-json\/wp\/v2\/comments?post=139"}],"version-history":[{"count":2,"href":"http:\/\/www.sttxx.com\/index.php\/wp-json\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":141,"href":"http:\/\/www.sttxx.com\/index.php\/wp-json\/wp\/v2\/posts\/139\/revisions\/141"}],"wp:attachment":[{"href":"http:\/\/www.sttxx.com\/index.php\/wp-json\/wp\/v2\/media?parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sttxx.com\/index.php\/wp-json\/wp\/v2\/categories?post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sttxx.com\/index.php\/wp-json\/wp\/v2\/tags?post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}