question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

User Report: Undefined "userSettings" when trying to select theme

See original GitHub issue

The below error was encountered when upgrading from 2.2 to 3.1. When SSO was disabled, the error was resolved.

TypeError: /opt/mynode/btc-rpc-explorer/views/layout.pug:15
    13| 
    14| 
  > 15| if (userSettings.uiTheme == "light")
    16| link(rel="stylesheet", href="./style/light.css", integrity="sha384-g29RQdd+TbXjjBSuwxb0PuDyrEcBhwSZ7JRL21EgNUQsP7XAXGvjiP1EhgHnL/Hj")
    17| 
    18| else

Cannot read property 'uiTheme' of undefined
    at eval (eval at wrap (/opt/mynode/btc-rpc-explorer/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:29:19)
    at template (eval at wrap (/opt/mynode/btc-rpc-explorer/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:4854:7)
    at Object.exports.renderFile (/opt/mynode/btc-rpc-explorer/node_modules/pug/lib/index.js:454:38)
    at Object.exports.renderFile (/opt/mynode/btc-rpc-explorer/node_modules/pug/lib/index.js:444:21)
    at exports.__express (/opt/mynode/btc-rpc-explorer/node_modules/pug/lib/index.js:493:11)
    at View.expressApp.engine (/opt/mynode/btc-rpc-explorer/app.js:120:23)
    at View.render (/opt/mynode/btc-rpc-explorer/node_modules/express/lib/view.js:135:8)
    at tryRender (/opt/mynode/btc-rpc-explorer/node_modules/express/lib/application.js:640:10)
    at Function.render (/opt/mynode/btc-rpc-explorer/node_modules/express/lib/application.js:592:3)
    at ServerResponse.render (/opt/mynode/btc-rpc-explorer/node_modules/express/lib/response.js:1012:7)
    at /opt/mynode/btc-rpc-explorer/app.js:802:6
    at Layer.handle_error (/opt/mynode/btc-rpc-explorer/node_modules/express/lib/router/layer.js:71:5)
    at trim_prefix (/opt/mynode/btc-rpc-explorer/node_modules/express/lib/router/index.js:315:13)
    at /opt/mynode/btc-rpc-explorer/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/opt/mynode/btc-rpc-explorer/node_modules/express/lib/router/index.js:335:12)
    at http://IncomingMessage.next (/opt/mynode/btc-rpc-explorer/node_modules/express/lib/router/index.js:275:10)


Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Kixunilcommented, Apr 16, 2021

Mainnet works. (Tested only in clean VM, so IBD in progress but hopefully it’s OK.)

0reactions
janosidecommented, Apr 16, 2021

There’s not much difference between regtest/mainnet, but there’s some, mostly out of simplification/convenience. Reducing/eliminating the differences seems like a good goal, just not a priority at the moment.

https://github.com/janoside/btc-rpc-explorer/blob/master/routes/baseRouter.js#L169

Read more comments on GitHub >

github_iconTop Results From Across the Web

User and Workspace Settings - Visual Studio Code
VS Code says "Unable to write settings."​​ If you try to change a setting (for example turning on Auto Save or selecting a...
Read more >
User Settings (Deprecated) - Salesforce Help
The User Settings component displays a user's username, email address, language, locale, time zone, profile visibility, and email notification settings. U..
Read more >
Troubleshoot Power BI embedded analytics application
This article discusses some common issues you may encounter when embedding content from Power BI.
Read more >
laravel - Visual Studio Code PHP Intelephense Keep Showing ...
Intelephense 1.3 added undefined type, function, constant, class constant, method, and property diagnostics, where previously in 1.2 there ...
Read more >
Customizing | Fix IT - today.
Time for customizing: ServiceNow CSS Themes for Now Platform UI ... The user is able to change this time zone in the user...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found