Skip to content

Uncaught ReferenceError: SchemaAlignment is not defined #6070

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

Closed
frafra opened this issue Sep 26, 2023 · 4 comments
Closed

Uncaught ReferenceError: SchemaAlignment is not defined #6070

frafra opened this issue Sep 26, 2023 · 4 comments
Labels
Type: Bug Issues related to software defects or unexpected behavior, which require resolution.
Milestone

Comments

@frafra
Copy link
Contributor

frafra commented Sep 26, 2023

To Reproduce

Steps to reproduce the behavior:

  1. Create a facet from a column

Current Results

Nothing happens.
Console logs:

Uncaught ReferenceError: SchemaAlignment is not defined
    resizeAll https://openrefine.nina.no/project-bundle.js:37771
    showLeftPanel https://openrefine.nina.no/project-bundle.js:37844
    Facet https://openrefine.nina.no/project-bundle.js:41268
    RangeFacet https://openrefine.nina.no/project-bundle.js:42078
    addFacet https://openrefine.nina.no/project-bundle.js:40098
    click https://openrefine.nina.no/project-bundle.js:47149
    createMenuItem https://openrefine.nina.no/project-bundle.js:38732
    dispatch https://openrefine.nina.no/project-bundle.js:5432
    handle https://openrefine.nina.no/project-bundle.js:5236
    add https://openrefine.nina.no/project-bundle.js:5284
    <anonymous> https://openrefine.nina.no/project-bundle.js:11682
    prop https://openrefine.nina.no/project-bundle.js:11095
    on https://openrefine.nina.no/project-bundle.js:5184
    each https://openrefine.nina.no/project-bundle.js:387
    each https://openrefine.nina.no/project-bundle.js:209
    on https://openrefine.nina.no/project-bundle.js:5183
    on https://openrefine.nina.no/project-bundle.js:5908
    createMenuItem https://openrefine.nina.no/project-bundle.js:38731
    createAndShowStandardMenu https://openrefine.nina.no/project-bundle.js:38751
    createMenuItem https://openrefine.nina.no/project-bundle.js:38723
    handle https://openrefine.nina.no/project-bundle.js:5897
    dispatch https://openrefine.nina.no/project-bundle.js:5432
    handle https://openrefine.nina.no/project-bundle.js:5236
    add https://openrefine.nina.no/project-bundle.js:5284
    <anonymous> https://openrefine.nina.no/project-bundle.js:11682
    prop https://openrefine.nina.no/project-bundle.js:11095
    on https://openrefine.nina.no/project-bundle.js:5184
    each https://openrefine.nina.no/project-bundle.js:387
    each https://openrefine.nina.no/project-bundle.js:209
    on https://openrefine.nina.no/project-bundle.js:5183
    on https://openrefine.nina.no/project-bundle.js:5908
    createMenuItem https://openrefine.nina.no/project-bundle.js:38708
    createAndShowStandardMenu https://openrefine.nina.no/project-bundle.js:38751
    _createMenuForColumnHeader https://openrefine.nina.no/project-bundle.js:46907
    _render https://openrefine.nina.no/project-bundle.js:46738
    dispatch https://openrefine.nina.no/project-bundle.js:5432
    handle https://openrefine.nina.no/project-bundle.js:5236
    add https://openrefine.nina.no/project-bundle.js:5284
    <anonymous> https://openrefine.nina.no/project-bundle.js:11682
    prop https://openrefine.nina.no/project-bundle.js:11095
    on https://openrefine.nina.no/project-bundle.js:5184
    each https://openrefine.nina.no/project-bundle.js:387
    each https://openrefine.nina.no/project-bundle.js:209
    on https://openrefine.nina.no/project-bundle.js:5183
    on https://openrefine.nina.no/project-bundle.js:5908
    _render https://openrefine.nina.no/project-bundle.js:46737
    DataTableColumnHeaderUI https://openrefine.nina.no/project-bundle.js:46708
    createColumnHeader https://openrefine.nina.no/project-bundle.js:45645
    _renderDataTables https://openrefine.nina.no/project-bundle.js:45651
    render https://openrefine.nina.no/project-bundle.js:45408
    _showRows https://openrefine.nina.no/project-bundle.js:45753
    fetchRows https://openrefine.nina.no/project-bundle.js:38201
    fire https://openrefine.nina.no/project-bundle.js:3502
project-bundle.js:37771:7
    resizeAll https://openrefine.nina.no/project-bundle.js:37771
    showLeftPanel https://openrefine.nina.no/project-bundle.js:37844
    Facet https://openrefine.nina.no/project-bundle.js:41268
    RangeFacet https://openrefine.nina.no/project-bundle.js:42078
    addFacet https://openrefine.nina.no/project-bundle.js:40098
    click https://openrefine.nina.no/project-bundle.js:47149
    createMenuItem https://openrefine.nina.no/project-bundle.js:38732
    dispatch https://openrefine.nina.no/project-bundle.js:5432
    handle https://openrefine.nina.no/project-bundle.js:5236
    (Async: EventListener.handleEvent)
    add https://openrefine.nina.no/project-bundle.js:5284
    <anonymous> https://openrefine.nina.no/project-bundle.js:11682
    prop https://openrefine.nina.no/project-bundle.js:11095
    on https://openrefine.nina.no/project-bundle.js:5184
    each https://openrefine.nina.no/project-bundle.js:387
    each https://openrefine.nina.no/project-bundle.js:209
    on https://openrefine.nina.no/project-bundle.js:5183
    on https://openrefine.nina.no/project-bundle.js:5908
    createMenuItem https://openrefine.nina.no/project-bundle.js:38731
    createAndShowStandardMenu https://openrefine.nina.no/project-bundle.js:38751
    createMenuItem https://openrefine.nina.no/project-bundle.js:38723
    handle https://openrefine.nina.no/project-bundle.js:5897
    dispatch https://openrefine.nina.no/project-bundle.js:5432
    handle https://openrefine.nina.no/project-bundle.js:5236
    (Async: EventListener.handleEvent)
    add https://openrefine.nina.no/project-bundle.js:5284
    <anonymous> https://openrefine.nina.no/project-bundle.js:11682
    prop https://openrefine.nina.no/project-bundle.js:11095
    on https://openrefine.nina.no/project-bundle.js:5184
    each https://openrefine.nina.no/project-bundle.js:387
    each https://openrefine.nina.no/project-bundle.js:209
    on https://openrefine.nina.no/project-bundle.js:5183
    on https://openrefine.nina.no/project-bundle.js:5908
    createMenuItem https://openrefine.nina.no/project-bundle.js:38708
    createAndShowStandardMenu https://openrefine.nina.no/project-bundle.js:38751
    _createMenuForColumnHeader https://openrefine.nina.no/project-bundle.js:46907
    _render https://openrefine.nina.no/project-bundle.js:46738
    dispatch https://openrefine.nina.no/project-bundle.js:5432
    handle https://openrefine.nina.no/project-bundle.js:5236
    (Async: EventListener.handleEvent)
    add https://openrefine.nina.no/project-bundle.js:5284
    <anonymous> https://openrefine.nina.no/project-bundle.js:11682
    prop https://openrefine.nina.no/project-bundle.js:11095
    on https://openrefine.nina.no/project-bundle.js:5184
    each https://openrefine.nina.no/project-bundle.js:387
    each https://openrefine.nina.no/project-bundle.js:209
    on https://openrefine.nina.no/project-bundle.js:5183
    on https://openrefine.nina.no/project-bundle.js:5908
    _render https://openrefine.nina.no/project-bundle.js:46737
    DataTableColumnHeaderUI https://openrefine.nina.no/project-bundle.js:46708
    createColumnHeader https://openrefine.nina.no/project-bundle.js:45645
    _renderDataTables https://openrefine.nina.no/project-bundle.js:45651
    render https://openrefine.nina.no/project-bundle.js:45408
    _showRows https://openrefine.nina.no/project-bundle.js:45753
    fetchRows https://openrefine.nina.no/project-bundle.js:38201
    fire https://openrefine.nina.no/project-bundle.js:3502

Expected Behavior

Faceting should work as usual.

Versions

  • Operating System: Ubuntu 20.04
  • Browser Version: Firefox 117
  • JRE or JDK Version: openjdk version "17.0.8.1" 2023-08-24
  • OpenRefine: version 3.7.5 [a04fb5f]

I use the containerized version built here: https://github.com/NINAnor/openrefine/pkgs/container/openrefine.

@frafra frafra added Type: Bug Issues related to software defects or unexpected behavior, which require resolution. Status: Pending Review Indicates that the issue or pull request is awaiting review by project maintainers or collaborators labels Sep 26, 2023
frafra referenced this issue Sep 27, 2023
…s resized (#5334)

* Made it so the Wikibase schema panel gets resized when the window gets resized.

* Added a guard to check if SchemaAlignment exists when doing resizeAll().
@frafra
Copy link
Contributor Author

frafra commented Sep 27, 2023

Backporting #5953 should fix this issue.

@Abbe98
Copy link
Member

Abbe98 commented Oct 17, 2023

This can be closed, right?

@wetneb wetneb closed this as completed Oct 17, 2023
@tfmorris
Copy link
Member

Strange that it didn't get closed automatically when #6073 was merged.

@wetneb
Copy link
Member

wetneb commented Oct 17, 2023

That only works for PRs made against master and this one was against 3.7

@tfmorris tfmorris removed the Status: Pending Review Indicates that the issue or pull request is awaiting review by project maintainers or collaborators label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues related to software defects or unexpected behavior, which require resolution.
Projects
None yet
Development

No branches or pull requests

4 participants