DTStack / molecule

:rocket: A lightweight Web IDE UI framework.

Home Page:https://dtstack.github.io/molecule/

Repository from Github https://github.comDTStack/moleculeRepository from Github https://github.comDTStack/molecule

bug: cannot set properties of undefined (setting 'apex')

briggssong opened this issue · comments

Describe the bug

Versions

  • OS: window
  • Browser: chrome
  • Molecule: demo

To reproduce

Expected

Trying to run a demo file, it appears on the console and won't call.
https://dtstack.github.io/molecule-examples/#/

I can't even find what problem, please check it.

Actually happening

image

commented

Hi @briggssong

It looks like monaco-editor version not match with the molecule built-in version?

@wewoor Hi!

{
"name": "molecule-demo",
"version": "0.1.0",
"private": true,
"dependencies": {
"@dtinsight/molecule": "^1.3.0",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.15",
"@types/node": "^12.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "6",
"react-scripts": "5.0.1",
"styled-components": "^5.3.3",
"typescript": "^4.1.2",
"web-vitals": "^1.0.1",
"xterm-for-react": "^1.0.4"
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@types/lodash": "^4.14.176",
"@types/styled-components": "^5.1.15",
"monaco-editor-webpack-plugin": "^7.0.0",
"react-app-rewired": "^2.1.8"
},
"homepage": "./"
}

https://github.com/DTStack/molecule-examples/tree/main/packages/molecule-demo

The project was installed via clone npm.

What is the optimized monaco version of molecule?