SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.47k stars 1.54k forks source link

babel_runtime_core_js_get_iterator__WEBPACK_IMPORTED_MODULE_1___default is not defined #998

Open Fusseldieb opened 4 years ago

Fusseldieb commented 4 years ago

Using this boilerplate in conjunction with puppeteer and trying to use it (page.evaluate and iterate over something), results in following error:

┏ Electron -------------------

  (node:98140) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Evaluation failed: ReferenceError: babel_runtime_core_js_get_iterator__WEBPACK_IMPORTED_MODULE_1___default is not defined
      at __puppeteer_evaluation_script__:15:54
  (node:98140) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

┗ ----------------------------

My package file:

"dependencies": {
    "axios": "^0.18.0",
    "babel-runtime": "^6.26.0",
    "core-js": "^3.6.4",
    "puppeteer": "^2.1.1",
    "vue": "^2.5.16",
    "vue-electron": "^1.0.6",
    "vue-router": "^3.0.1",
    "vuex": "^3.0.1",
    "vuex-electron": "^1.0.0"
  },
  "devDependencies": {
    "ajv": "^6.5.0",
    "babel-core": "^6.26.3",
    "babel-loader": "^7.1.4",
    "babel-minify-webpack-plugin": "^0.3.1",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-preset-env": "^1.7.0",
    "babel-preset-stage-0": "^6.24.1",
    "babel-register": "^6.26.0",
    "cfonts": "^2.1.2",
    "chalk": "^2.4.1",
    "copy-webpack-plugin": "^4.5.1",
    "cross-env": "^5.1.6",
    "css-loader": "^0.28.11",
    "del": "^3.0.0",
    "devtron": "^1.4.0",
    "electron": "^2.0.4",
    "electron-debug": "^1.5.0",
    "electron-devtools-installer": "^2.2.4",
    "electron-packager": "^12.1.0",
    "electron-rebuild": "^1.8.1",
    "file-loader": "^1.1.11",
    "html-webpack-plugin": "^3.2.0",
    "mini-css-extract-plugin": "0.4.0",
    "multispinner": "^0.2.1",
    "node-loader": "^0.6.0",
    "node-sass": "^4.9.2",
    "sass-loader": "^7.0.3",
    "style-loader": "^0.21.0",
    "url-loader": "^1.0.1",
    "vue-html-loader": "^1.2.4",
    "vue-loader": "^15.2.4",
    "vue-style-loader": "^4.1.0",
    "vue-template-compiler": "^2.5.16",
    "webpack": "^4.15.1",
    "webpack-cli": "^3.0.8",
    "webpack-dev-server": "^3.1.4",
    "webpack-hot-middleware": "^2.22.2",
    "webpack-merge": "^4.1.3"
  }

I've ran out of ideas of what to install or where to import something.

Any help is greatly appreciated!

Fusseldieb commented 4 years ago

Quick update: I "solved" it by using another template on GitHub, however, this issue on this template persists.

Davidzhu001 commented 4 years ago

@Fusseldieb which template are you using?

Fusseldieb commented 4 years ago

@Fusseldieb which template are you using?

Sorry for the delay. I'm using https://github.com/mubaidr/vue-electron-template. Active at the time of writing, files were changed days ago.