Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webview error when using jQuery #903

Open
theWebalyst opened this issue Jul 16, 2019 · 0 comments

Comments

@theWebalyst
Copy link

commented Jul 16, 2019

Environment

  • SAFE Browser 0.14.0 (dev/mock)
  • Ubuntu v18.10

Steps to Reproduce (for bugs)

git clone https://github.com/theWebalyst/solid-addfriend
cd solid-addfriend
# start a web server
# open SAFE Browser (mock) and navigate to the localhost address
# open the browser console to see the errors

The Error

I've seen the following error in two errors in apps now which use a jQuery library. (Note: there's also a dev forum topic but with no more info or responses at this time).

/home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/node_modules/electron-log/lib/transports/console.js:72 [A Tab:  11:56:41.845] › Error in webview
consoleLog @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/node_modules/electron-log/lib/transports/console.js:72
transport @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/node_modules/electron-log/lib/transports/console.js:37
log @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/node_modules/electron-log/lib/log.js:25
module.exports../app/webPreload.ts.window.addEventListener.error @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:8261
error (async)
./app/webPreload.ts @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:8260
__webpack_require__ @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:21
(anonymous) @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:85
(anonymous) @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:88
(anonymous) @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:9907
Module._compile @ internal/modules/cjs/loader.js:693
Module._extensions..js @ internal/modules/cjs/loader.js:704
Module.load @ internal/modules/cjs/loader.js:602
tryModuleLoad @ internal/modules/cjs/loader.js:541
Module._load @ internal/modules/cjs/loader.js:533
Module.require @ internal/modules/cjs/loader.js:640
require @ internal/modules/cjs/helpers.js:20
(anonymous) @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/electron.asar/renderer/init.js:156
(anonymous) @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/electron.asar/renderer/init.js:178
Module._compile @ internal/modules/cjs/loader.js:693
Module._extensions..js @ internal/modules/cjs/loader.js:704
Module.load @ internal/modules/cjs/loader.js:602
tryModuleLoad @ internal/modules/cjs/loader.js:541
Module._load @ internal/modules/cjs/loader.js:533
Module.runMain @ internal/modules/cjs/loader.js:746
startup @ internal/bootstrap/node.js:282
bootstrapNodeJSCore @ internal/bootstrap/node.js:759

/home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/node_modules/electron-log/lib/transports/console.js:72 [A Tab:  11:56:41.847] › {"message":"Uncaught ReferenceError: $ is not defined","type":"error"}
consoleLog @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/node_modules/electron-log/lib/transports/console.js:72
transport @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/node_modules/electron-log/lib/transports/console.js:37
log @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/node_modules/electron-log/lib/log.js:25
module.exports../app/webPreload.ts.window.addEventListener.error @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:8262
error (async)
./app/webPreload.ts @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:8260
__webpack_require__ @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:21
(anonymous) @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:85
(anonymous) @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:88
(anonymous) @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/app.asar/app/webPreload.prod.js:9907
Module._compile @ internal/modules/cjs/loader.js:693
Module._extensions..js @ internal/modules/cjs/loader.js:704
Module.load @ internal/modules/cjs/loader.js:602
tryModuleLoad @ internal/modules/cjs/loader.js:541
Module._load @ internal/modules/cjs/loader.js:533
Module.require @ internal/modules/cjs/loader.js:640
require @ internal/modules/cjs/helpers.js:20
(anonymous) @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/electron.asar/renderer/init.js:156
(anonymous) @ /home/mrh/safe-releases/2017-09-21_Alpha_2/safe-browser-v0.14.0-linux-x64-dev/resources/electron.asar/renderer/init.js:178
Module._compile @ internal/modules/cjs/loader.js:693
Module._extensions..js @ internal/modules/cjs/loader.js:704
Module.load @ internal/modules/cjs/loader.js:602
tryModuleLoad @ internal/modules/cjs/loader.js:541
Module._load @ internal/modules/cjs/loader.js:533
Module.runMain @ internal/modules/cjs/loader.js:746
startup @ internal/bootstrap/node.js:282
bootstrapNodeJSCore @ internal/bootstrap/node.js:759
main.js:6 Uncaught ReferenceError: $ is not defined
    at main.js:6

@joshuef joshuef added the bug label Aug 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.