javascript - Attempted to switch from webpack v1 syntax to webpack v3 and encountered a weird compilation error -
i working on reactjs login screen project , first encountered issue webpack (re: compilation issue react login screen) @andrew li(https://stackoverflow.com/users/5647260/andrew-li) correctly prompted switch webpack v1 syntax webpack v3 syntax.
this resulting config code:
https://gist.github.com/jqed-xuereb/8134002fdfb697e34a855e0394969ffc
upon compiling , running code using webpack index.js run.js following error unexpected token in line doesn't exist in code. precisely 1 line under final line. error:
c:\users\jake\command line work\learnd\iteration 0\app\frontend>webpack index.js run.js c:\users\jake\command line work\learnd\iteration 0\app\frontend\webpack.config.js:143 }); ^ syntaxerror: unexpected token } @ createscript (vm.js:56:10) @ object.runinthiscontext (vm.js:97:10) @ module._compile (module.js:542:28) @ object.module._extensions..js (module.js:579:10) @ module.load (module.js:487:32) @ trymoduleload (module.js:446:12) @ function.module._load (module.js:438:3) @ module.require (module.js:497:17) @ require (internal/module.js:20:19) @ requireconfig (c:\users\jake\appdata\roaming\npm\node_modules\webpack\bin\convert- argv.js:97:18)
any form of way pointing or correction regarding config , getting rid of error more appreciated.
thanks , owe virtual pints of beer,
j.
resolve , under should @ root level not under rules. should add missing ], },
after last rule
Comments
Post a Comment