Unhandled Rejection (Error): The event clear does not exist
(anonymous function)
src/core/emitter.ts:16
13 | const events = names instanceof Array ? names : (names as string).split(' ');
14 |
15 | (events as string[]).forEach(name => {
> 16 | if (!this.events[name])
| ^ 17 | throw new Error(`The event ${name} does not exist`);
18 | this.events[name].push(handler);
19 | });
View compiled
NodeEditor.on
src/core/emitter.ts:15
12 | on<K extends keyof EventTypes>(names: K | K[], handler: (args: EventTypes[K]) => any) {
13 | const events = names instanceof Array ? names : (names as string).split(' ');
14 |
> 15 | (events as string[]).forEach(name => {
| ^ 16 | if (!this.events[name])
17 | throw new Error(`The event ${name} does not exist`);
18 | this.events[name].push(handler);
View compiled
install
src/index.js:33
NodeEditor.use
src/core/context.ts:27
24 | use<T extends Plugin, O extends PluginParams<T>>(plugin: T, options?: O) {
25 | if (plugin.name && this.plugins.has(plugin.name)) throw new Error(`Plugin ${plugin.name} already in use`)
26 |
> 27 | plugin.install(this, options || {});
| ^ 28 | this.plugins.set(plugin.name, options)
29 | }
30 |
View compiled
createEditor
src/component/Rete.jsx:153
150 | });
151 | // editor.use(SelectionPlugin, { enabled: true });
152 |
> 153 | editor.use(HistoryPlugin, { keyboard: true });
| ^ 154 |
155 | // editor.on('editcomment', async (comment) => {
156 | // comment.text = await openEditModal(comment.text);
View compiled
(anonymous function)
src/component/Rete.jsx:207
204 |
205 | useEffect(() => {
206 | if (container) {
> 207 | createEditor(container).then((value) => {
| ^ 208 | console.log("created");
209 | editorRef.current = value;
210 | });
View compiled
โถ 18 stack frames were collapsed.
Module.<anonymous>
src/index.js:7
4 | import App from './App';
5 | import reportWebVitals from './reportWebVitals';
6 |
> 7 | ReactDOM.render(
8 | <React.StrictMode>
9 | <App />
10 | </React.StrictMode>,
View compiled
Module../src/index.js
http://localhost:3000/static/js/main.chunk.js:840:30
__webpack_require__
/home/hugo/EIA/PGE/proto-sym-ui/webpack/bootstrap:856
853 |
854 | __webpack_require__.$Refresh$.init();
855 | try {
> 856 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
| ^ 857 | } finally {
858 | __webpack_require__.$Refresh$.cleanup(moduleId);
859 | }
View compiled
fn
/home/hugo/EIA/PGE/proto-sym-ui/webpack/bootstrap:150
147 | );
148 | hotCurrentParents = [];
149 | }
> 150 | return __webpack_require__(request);
| ^ 151 | };
152 | var ObjectFactory = function ObjectFactory(name) {
153 | return {
View compiled
1
http://localhost:3000/static/js/main.chunk.js:963:18
__webpack_require__
/home/hugo/EIA/PGE/proto-sym-ui/webpack/bootstrap:856
853 |
854 | __webpack_require__.$Refresh$.init();
855 | try {
> 856 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
| ^ 857 | } finally {
858 | __webpack_require__.$Refresh$.cleanup(moduleId);
859 | }
View compiled
checkDeferredModules
/home/hugo/EIA/PGE/proto-sym-ui/webpack/bootstrap:45
42 | }
43 | if(fulfilled) {
44 | deferredModules.splice(i--, 1);
> 45 | result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
| ^ 46 | }
47 | }
48 |
View compiled
Array.webpackJsonpCallback [as push]
/home/hugo/EIA/PGE/proto-sym-ui/webpack/bootstrap:32
29 | deferredModules.push.apply(deferredModules, executeModules || []);
30 |
31 | // run deferred modules when all chunks ready
> 32 | return checkDeferredModules();
| ^ 33 | };
34 | function checkDeferredModules() {
35 | var result;
View compiled
(anonymous function)
http://localhost:3000/static/js/main.chunk.js:1:77