Jungwoo-An / react-editor-js

⚛️📝The unofficial editor-js component for React
https://codesandbox.io/s/react-editor-js-v2-34bfl
MIT License
940 stars 77 forks source link

module property must point to ESM file #236

Closed junkboy0315 closed 9 months ago

junkboy0315 commented 10 months ago

PR Type

Description

The module property in package.json must point to an ESM (ECMAScript Module) file.

As a result, this library encounters issues during Vite production builds. Specifically, Vite misinterprets CJS (CommonJS) files as ESM, causing problems with handling the require function.

# The app does not start with the following error

react-editor-js.js:3 Uncaught ReferenceError: require is not defined
    at createReactEditorJS (react-editor-js.js:3:27)
スクリーンショット 2023-09-29 13 07 56
junkboy0315 commented 9 months ago

Close because this library is no longer maintained.

albirrkarim commented 4 months ago

Close because this library is no longer maintained.

Btw , whats your solution for this ?