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
Post a Comment