I checked if this has been a problem before with the context-menu-plugin but could not find an issue that covers it.
After following the example on retejs.org how to setup this plugin, I get this error:
Uncaught ....../node_modules/lodash-es/lodash.js:10
export { default as add } from ./add.js;
^^^^^^
SyntaxError: Unexpected token export
at new Script (vm.js:84:7)
at createScript (vm.js:258:10)
at Object.runInThisContext (vm.js:306:10)
at Module._compile (internal/modules/cjs/loader.js:884:26)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10)
at Module.load (internal/modules/cjs/loader.js:816:32)
at Module._load (internal/modules/cjs/loader.js:728:14)
at Module._load (electron/js2c/asar.js:717:26)
at Function.Module._load (electron/js2c/asar.js:717:26)
at Module.require (internal/modules/cjs/loader.js:853:19)
My guess is that I am missing lodash so I tried to include it using yarn. But nothing of what I tried so far worked. Could anybody lead me in the right direction? I am running retejs with electron-webpack.
{
"name": "test",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"dev": "electron-webpack dev",
"compile": "electron-webpack",
"dist": "yarn compile && electron-builder",
"dist:dir": "yarn dist --dir -c.compression=store -c.mac.identity=null"
},
"dependencies": {
"@babel/core": "^7.9.6",
"@babel/polyfill": "^7.8.7",
"@babel/preset-env": "^7.9.6",
"rete": "^1.4.3-rc.1",
"rete-area-plugin": "^0.2.1",
"rete-connection-plugin": "^0.9.0",
"rete-connection-reroute-plugin": "^0.4.0",
"rete-context-menu-plugin": "^0.6.0-rc.1",
"rete-dock-plugin": "^0.2.1",
"rete-minimap-plugin": "^0.3.1",
"rete-module-plugin": "^0.4.1",
"rete-readonly-plugin": "^0.4.1",
"rete-reorder-nodes-plugin": "^0.3.0",
"rete-task-plugin": "^0.3.0",
"rete-vue-render-plugin": "^0.5.0",
"vue": "^2.6.11"
},
"devDependencies": {
"babel-loader": "^8.1.0",
"css-loader": "^3.5.3",
"electron": "^8.2.5",
"electron-builder": "^22.4.1",
"electron-debug": "^3.0.1",
"electron-webpack": "^2.8.2",
"node-sass": "^4.14.1",
"sass-loader": "^8.0.2",
"source-map-loader": "^0.2.4",
"vue-loader": "^15.9.2",
"vue-template-compiler": "^2.6.11",
"webpack": "^4.43.0"
}
}