Closed ramrami closed 5 years ago
+1
Here's how I solved it. Basically, due to the aliasing of react and react-dom to preact-compat, the reference to the file CSSProperty.js is wrong.
I copied the js file from react-dom to preact-compat and the build worked.
In my gulpfile, I've just setup the following, as quick fix:
/**
* Preact fixes
*/
const fs = require('fs');
fs.createReadStream('./node_modules/react-dom/lib/CSSProperty.js').pipe(
fs.createWriteStream('./node_modules/preact-compat/lib/CSSProperty.js'),
);
Hi, I want to convert one of my React project to preact, we're using DraftJs as a "a framework for building rich text editors in React", but I get the following build error :
How can I get around this error ?