Closed MrWeit closed 2 weeks ago
I think it has something to do with React v18 and arco design @m-Ryan
https://github.com/m-Ryan/easy-email-demo
It is usually caused by compilation. It is recommended that you start with our demo.
@m-Ryan still happening as of today(Jul-18). Tested it with new setup, loads the editor, but not the content under either of left sidebar or the right, error is exactly same if I try to tweak it a bit and bring the Content
collapsable and try to click it.
Code where error is:
var __read$D = globalThis && globalThis.__read || function(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];var __read$D = globalThis && globalThis.__read || function(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
the actual error
packages.json
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"easy-email-core": "^4.16.0",
"easy-email-editor": "^4.16.0",
"easy-email-extensions": "^4.16.0","easy-email-core": "^4.16.0",
"easy-email-editor": "^4.16.0",
"easy-email-extensions": "^4.16.0",
...
}
"devDependencies": {
...,
"vite": "^5.3.1",
}
I have also used the demo, nothing is there as well, just blank screen
https://github.com/m-Ryan/easy-email-demo
I've updated the demo version and everything works fine
yeah, demo works great, but what about the actual package, with React 18?
I think the problem is the arco version, should be updated in order to work with React 18!
It doesn’t matter, you can check the code of this repo, it is already React18 https://github.com/zalify/easy-email-editor/blob/master/nextjs-demo/package.json
Hello, i have spent hours trying to figure this thing out, but I can't waste more time! I have just build a fresh react project and added the following code to App.tsx, after installing all the dependencies.
This is my tsconfig.json
The issue is the following when i open the page is like this
When when i click the collapse component is shows this error
Also when I reload the page it shows all the collapsed components but after some ms they disappear! Thanks in advance!