I try to implement SyntaxHighlighter using react and webpack.
I install it via npm.
npm install --save syntaxhighlighter
It install perfectly. Now the problem is how to import it properly.
I've tried like this:
import SyntaxHighlighter from 'syntaxhighlighter';
But it doesn't work, Chrom console reports the error like:
TypeError: Cannot assign to read only property 'exports' of object '#'
How can I use syntaxHighlighter with webpack and react?