draft-js-exporter icon indicating copy to clipboard operation
draft-js-exporter copied to clipboard

strange error

Open optimatex opened this issue 8 years ago • 1 comments

Module parse failed: \node_modules\draft-js-exporter\lib\formats.json Unexpected token (2:8) what could it be?

optimatex avatar Oct 03 '16 18:10 optimatex

Fixed by install json-loader package and reference it at main.js as following

var jsonLoader = require('json-loader');
var FORMATS = require('json-loader!./formats.json');

hamed-farag avatar Dec 26 '16 15:12 hamed-farag