gtgalone / react-quilljs

React Hook Wrapper for Quill, powerful rich text editor.
https://www.npmjs.com/package/react-quilljs
MIT License
248 stars 28 forks source link

'require' is not define after building the react app #63

Closed prajjwalkapoor closed 1 year ago

prajjwalkapoor commented 1 year ago

I created my project with "vite": "^4.1.0" On the local machine, the reach text editor shows up but when I host/build it, I am not able to view the page. The page is all blank. And in the console, it says:

ReferenceError: require is not defined
    at index-1e54aaaf.js:193:31693
    at Za (index-1e54aaaf.js:38:20704)
    at cf (index-1e54aaaf.js:38:21172)
    at Object.useState (index-1e54aaaf.js:38:27566)
    at QS.Ge.useState (index-1e54aaaf.js:9:6487)
    at HD (index-1e54aaaf.js:193:31529)
    at QD (index-1e54aaaf.js:193:32289)
    at lf (index-1e54aaaf.js:38:19884)
    at gf (index-1e54aaaf.js:40:3138)
    at Lv (index-1e54aaaf.js:40:45128)

image