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

Polls 7.0.2: Lots of JavaScript warnings in JavaScript console #3413

Closed
5 of 12 tasks
gohrner opened this issue Apr 4, 2024 · 3 comments
Closed
5 of 12 tasks

Polls 7.0.2: Lots of JavaScript warnings in JavaScript console #3413

gohrner opened this issue Apr 4, 2024 · 3 comments
Labels
dependencies Pull requests that update a dependency file stale

Comments

@gohrner
Copy link

gohrner commented Apr 4, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • I agree to follow Nextcloud's Code of Conduct.

What went wrong, what did you observe?

NC 28, Polls 7.0.2, Chromium browser Version 122.0.6261.94 (Offizieller Build) snap (64-Bit)

Open Polls app index.

polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 340, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
render	@	NcButton.mjs:156
e._render	@	vue.runtime.esm.js:2700
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e	@	vue.runtime.esm.js:3452
e	@	vue.runtime.esm.js:3908
La.$mount	@	vue.runtime.esm.js:8797
init	@	vue.runtime.esm.js:4427
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
Di.nodeOps	@	vue.runtime.esm.js:7095
e._update	@	vue.runtime.esm.js:3781
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e	@	vue.runtime.esm.js:3452
e	@	vue.runtime.esm.js:3908
La.$mount	@	vue.runtime.esm.js:8797
init	@	vue.runtime.esm.js:4427
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
m	@	vue.runtime.esm.js:6664
h	@	vue.runtime.esm.js:6568
m	@	vue.runtime.esm.js:6664
h	@	vue.runtime.esm.js:6568
Di.nodeOps	@	vue.runtime.esm.js:7095
e._update	@	vue.runtime.esm.js:3781
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e	@	vue.runtime.esm.js:3452
e	@	vue.runtime.esm.js:3908
La.$mount	@	vue.runtime.esm.js:8797
init	@	vue.runtime.esm.js:4427
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
m	@	vue.runtime.esm.js:6664
h	@	vue.runtime.esm.js:6568
Di.nodeOps	@	vue.runtime.esm.js:7095
e._update	@	vue.runtime.esm.js:3781
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e	@	vue.runtime.esm.js:3452
e	@	vue.runtime.esm.js:3908
La.$mount	@	vue.runtime.esm.js:8797
init	@	vue.runtime.esm.js:4427
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
Di.nodeOps	@	vue.runtime.esm.js:7095
e._update	@	vue.runtime.esm.js:3781
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e	@	vue.runtime.esm.js:3452
e	@	vue.runtime.esm.js:3908
La.$mount	@	vue.runtime.esm.js:8797
init	@	vue.runtime.esm.js:4427
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
F	@	vue.runtime.esm.js:6716
(anonymous)	@	vue.runtime.esm.js:6860
k	@	vue.runtime.esm.js:6933
(anonymous)	@	vue.runtime.esm.js:6807
k	@	vue.runtime.esm.js:6933
(anonymous)	@	vue.runtime.esm.js:6807
k	@	vue.runtime.esm.js:6933
Di.nodeOps	@	vue.runtime.esm.js:7101
e._update	@	vue.runtime.esm.js:3785
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e.run	@	vue.runtime.esm.js:3538
ta	@	vue.runtime.esm.js:4141
(anonymous)	@	vue.runtime.esm.js:3159
gn	@	vue.runtime.esm.js:3081
Promise.then (async)		
hn	@	vue.runtime.esm.js:3106
bn	@	vue.runtime.esm.js:3171
na	@	vue.runtime.esm.js:4227
e.update	@	vue.runtime.esm.js:3529
e.notify	@	vue.runtime.esm.js:732
set	@	vue.runtime.esm.js:976
set	@	polls.js:141
(anonymous)	@	vuex.esm.js:844
(anonymous)	@	vuex.esm.js:466
(anonymous)	@	vuex.esm.js:465
h._withCommit	@	vuex.esm.js:624
h.commit	@	vuex.esm.js:464
commit	@	vuex.esm.js:409
r.commit	@	vuex.esm.js:796
list	@	polls.js:199
await in list (async)		
(anonymous)	@	vuex.esm.js:851
h.dispatch	@	vuex.esm.js:516
dispatch	@	vuex.esm.js:406
loadPolls	@	Navigation.vue:175
created	@	Navigation.vue:146
un	@	vue.runtime.esm.js:3033
Hn	@	vue.runtime.esm.js:4048
e._init	@	vue.runtime.esm.js:5716
o	@	vue.runtime.esm.js:5849
(anonymous)	@	vue.runtime.esm.js:4564
init	@	vue.runtime.esm.js:4426
n	@	vue.runtime.esm.js:4581
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
(anonymous)	@	vue.runtime.esm.js:6840
k	@	vue.runtime.esm.js:6933
Di.nodeOps	@	vue.runtime.esm.js:7101
e._update	@	vue.runtime.esm.js:3785
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e.run	@	vue.runtime.esm.js:3538
ta	@	vue.runtime.esm.js:4141
(anonymous)	@	vue.runtime.esm.js:3159
gn	@	vue.runtime.esm.js:3081
Promise.then (async)		
hn	@	vue.runtime.esm.js:3106
bn	@	vue.runtime.esm.js:3171
na	@	vue.runtime.esm.js:4227
e.update	@	vue.runtime.esm.js:3529
e.notify	@	vue.runtime.esm.js:732
set	@	vue.runtime.esm.js:976
(anonymous)	@	vue-router.esm.js:3005
(anonymous)	@	vue-router.esm.js:3004
bt.updateRoute	@	vue-router.esm.js:2414
(anonymous)	@	vue-router.esm.js:2263
(anonymous)	@	vue-router.esm.js:2402
a	@	vue-router.esm.js:2084
a	@	vue-router.esm.js:2091
a	@	vue-router.esm.js:2091
mt	@	vue-router.esm.js:2095
(anonymous)	@	vue-router.esm.js:2397
a	@	vue-router.esm.js:2084
(anonymous)	@	vue-router.esm.js:2088
(anonymous)	@	vue-router.esm.js:2384
(anonymous)	@	vue-router.esm.js:2127
(anonymous)	@	vue-router.esm.js:2203
Promise.then (async)		
(anonymous)	@	vue-router.esm.js:2150
(anonymous)	@	vue-router.esm.js:2171
(anonymous)	@	vue-router.esm.js:2171
_t	@	vue-router.esm.js:2170
(anonymous)	@	vue-router.esm.js:2106
m	@	vue-router.esm.js:2362
a	@	vue-router.esm.js:2087
a	@	vue-router.esm.js:2091
mt	@	vue-router.esm.js:2095
bt.confirmTransition	@	vue-router.esm.js:2392
bt.transitionTo	@	vue-router.esm.js:2260
Rt.init	@	vue-router.esm.js:2996
beforeCreate	@	vue-router.esm.js:1298
un	@	vue.runtime.esm.js:3033
Hn	@	vue.runtime.esm.js:4048
e._init	@	vue.runtime.esm.js:5712
La	@	vue.runtime.esm.js:5785
(anonymous)	@	main.js:59
(anonymous)	@	main.js:63
(anonymous)	@	main.js:63

What did you expect, how polls should behave instead?

Don't spam the JavaScript log with warnings.

What steps does it need to replay this bug?

For me, it's sufficient to visit the Polls main page in NextCloud 28.

Installation method

Installed/updated from the appstore (Apps section of your site)

Installation type

Updated from a minor version within same major version (i.e. 4.0.0 to 4.1.1)

Affected polls version

7.0.2

Which browser did you use, when experiencing the bug?

  • Firefox
  • Chrome
  • Chromium/Chromium based (i.e. Edge)
  • Safari
  • Other/Don't know

Other browser

No response

Add your browser log here

polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 340, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
render	@	NcButton.mjs:156
e._render	@	vue.runtime.esm.js:2700
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e	@	vue.runtime.esm.js:3452
e	@	vue.runtime.esm.js:3908
La.$mount	@	vue.runtime.esm.js:8797
init	@	vue.runtime.esm.js:4427
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
Di.nodeOps	@	vue.runtime.esm.js:7095
e._update	@	vue.runtime.esm.js:3781
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e	@	vue.runtime.esm.js:3452
e	@	vue.runtime.esm.js:3908
La.$mount	@	vue.runtime.esm.js:8797
init	@	vue.runtime.esm.js:4427
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
m	@	vue.runtime.esm.js:6664
h	@	vue.runtime.esm.js:6568
m	@	vue.runtime.esm.js:6664
h	@	vue.runtime.esm.js:6568
Di.nodeOps	@	vue.runtime.esm.js:7095
e._update	@	vue.runtime.esm.js:3781
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e	@	vue.runtime.esm.js:3452
e	@	vue.runtime.esm.js:3908
La.$mount	@	vue.runtime.esm.js:8797
init	@	vue.runtime.esm.js:4427
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
m	@	vue.runtime.esm.js:6664
h	@	vue.runtime.esm.js:6568
Di.nodeOps	@	vue.runtime.esm.js:7095
e._update	@	vue.runtime.esm.js:3781
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e	@	vue.runtime.esm.js:3452
e	@	vue.runtime.esm.js:3908
La.$mount	@	vue.runtime.esm.js:8797
init	@	vue.runtime.esm.js:4427
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
Di.nodeOps	@	vue.runtime.esm.js:7095
e._update	@	vue.runtime.esm.js:3781
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e	@	vue.runtime.esm.js:3452
e	@	vue.runtime.esm.js:3908
La.$mount	@	vue.runtime.esm.js:8797
init	@	vue.runtime.esm.js:4427
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
F	@	vue.runtime.esm.js:6716
(anonymous)	@	vue.runtime.esm.js:6860
k	@	vue.runtime.esm.js:6933
(anonymous)	@	vue.runtime.esm.js:6807
k	@	vue.runtime.esm.js:6933
(anonymous)	@	vue.runtime.esm.js:6807
k	@	vue.runtime.esm.js:6933
Di.nodeOps	@	vue.runtime.esm.js:7101
e._update	@	vue.runtime.esm.js:3785
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e.run	@	vue.runtime.esm.js:3538
ta	@	vue.runtime.esm.js:4141
(anonymous)	@	vue.runtime.esm.js:3159
gn	@	vue.runtime.esm.js:3081
Promise.then (async)		
hn	@	vue.runtime.esm.js:3106
bn	@	vue.runtime.esm.js:3171
na	@	vue.runtime.esm.js:4227
e.update	@	vue.runtime.esm.js:3529
e.notify	@	vue.runtime.esm.js:732
set	@	vue.runtime.esm.js:976
set	@	polls.js:141
(anonymous)	@	vuex.esm.js:844
(anonymous)	@	vuex.esm.js:466
(anonymous)	@	vuex.esm.js:465
h._withCommit	@	vuex.esm.js:624
h.commit	@	vuex.esm.js:464
commit	@	vuex.esm.js:409
r.commit	@	vuex.esm.js:796
list	@	polls.js:199
await in list (async)		
(anonymous)	@	vuex.esm.js:851
h.dispatch	@	vuex.esm.js:516
dispatch	@	vuex.esm.js:406
loadPolls	@	Navigation.vue:175
created	@	Navigation.vue:146
un	@	vue.runtime.esm.js:3033
Hn	@	vue.runtime.esm.js:4048
e._init	@	vue.runtime.esm.js:5716
o	@	vue.runtime.esm.js:5849
(anonymous)	@	vue.runtime.esm.js:4564
init	@	vue.runtime.esm.js:4426
n	@	vue.runtime.esm.js:4581
(anonymous)	@	vue.runtime.esm.js:6591
h	@	vue.runtime.esm.js:6545
(anonymous)	@	vue.runtime.esm.js:6840
k	@	vue.runtime.esm.js:6933
Di.nodeOps	@	vue.runtime.esm.js:7101
e._update	@	vue.runtime.esm.js:3785
a	@	vue.runtime.esm.js:3891
e.get	@	vue.runtime.esm.js:3462
e.run	@	vue.runtime.esm.js:3538
ta	@	vue.runtime.esm.js:4141
(anonymous)	@	vue.runtime.esm.js:3159
gn	@	vue.runtime.esm.js:3081
Promise.then (async)		
hn	@	vue.runtime.esm.js:3106
bn	@	vue.runtime.esm.js:3171
na	@	vue.runtime.esm.js:4227
e.update	@	vue.runtime.esm.js:3529
e.notify	@	vue.runtime.esm.js:732
set	@	vue.runtime.esm.js:976
(anonymous)	@	vue-router.esm.js:3005
(anonymous)	@	vue-router.esm.js:3004
bt.updateRoute	@	vue-router.esm.js:2414
(anonymous)	@	vue-router.esm.js:2263
(anonymous)	@	vue-router.esm.js:2402
a	@	vue-router.esm.js:2084
a	@	vue-router.esm.js:2091
a	@	vue-router.esm.js:2091
mt	@	vue-router.esm.js:2095
(anonymous)	@	vue-router.esm.js:2397
a	@	vue-router.esm.js:2084
(anonymous)	@	vue-router.esm.js:2088
(anonymous)	@	vue-router.esm.js:2384
(anonymous)	@	vue-router.esm.js:2127
(anonymous)	@	vue-router.esm.js:2203
Promise.then (async)		
(anonymous)	@	vue-router.esm.js:2150
(anonymous)	@	vue-router.esm.js:2171
(anonymous)	@	vue-router.esm.js:2171
_t	@	vue-router.esm.js:2170
(anonymous)	@	vue-router.esm.js:2106
m	@	vue-router.esm.js:2362
a	@	vue-router.esm.js:2087
a	@	vue-router.esm.js:2091
mt	@	vue-router.esm.js:2095
bt.confirmTransition	@	vue-router.esm.js:2392
bt.transitionTo	@	vue-router.esm.js:2260
Rt.init	@	vue-router.esm.js:2996
beforeCreate	@	vue-router.esm.js:1298
un	@	vue.runtime.esm.js:3033
Hn	@	vue.runtime.esm.js:4048
e._init	@	vue.runtime.esm.js:5712
La	@	vue.runtime.esm.js:5785
(anonymous)	@	main.js:59
(anonymous)	@	main.js:63
(anonymous)	@	main.js:63
Show less
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 347, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 354, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 361, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 368, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 375, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 382, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 389, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 396, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 403, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 410, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 417, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 424, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 431, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 438, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 445, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}
polls.js:141 You need to fill either the text or the ariaLabel props in the button component. 
{text: undefined, ariaLabel: null}
 
o {_uid: 452, _isVue: true, __v_skip: true, _scope: e, $options: {…}, …}

Additional client environment information

No response

NC version

Nextcloud 28

Other Nextcloud version

No response

PHP engine version

PHP 8.2

Other PHP version

No response

Database engine

MariaDB

Database Engine version or other Database

No response

Which user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other/Don't know

Add your nextcloud server log here

No response

Additional environment informations

No response

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Additional Information

No response

@gohrner gohrner added the bug label Apr 4, 2024
@dartcafe dartcafe added dependencies Pull requests that update a dependency file and removed bug labels Apr 4, 2024
@dartcafe
Copy link
Collaborator

dartcafe commented Apr 4, 2024

The warnings are resulting from the NcActionButton component in @nextcloud-libraries/nextcloud-vue, if only one action button is defined.

But since there was a bug, which prevented the display of other actions, the warnings could be reduced to only two.

Copy link

github-actions bot commented May 5, 2024

This issue is marked as stale, because it had no activity in the last 30 days. It will be closed in 5 days.

@github-actions github-actions bot added the stale label May 5, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file stale
Projects
None yet
Development

No branches or pull requests

2 participants