WebPack Syntax Error, Appropriate Loader Needed -


i'm receiving following error webpack:

error in ../../../fixed-wordmark.js module parse failed: c:\...\fixed-wordmark.js unexpected token (14:12) may need appropriate loader handle file type. syntaxerror: unexpectedtoken (14:12) 

and offending code snippet:

the require('../../fixed-wordmark.less'); line (14:12)

let fixedwordmark = createreactclass({     componentwillmount: function() {         require('../../fixed-wordmark.less');     },     render: function () {         return (             <img src={wordmark}                  alt="wordmark"                  id="fixed-wordmark" />         );     } }); 

any ideas? thanks


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -