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

playground error: read properties of null #804

Open
ericprud opened this issue Mar 13, 2023 · 2 comments
Open

playground error: read properties of null #804

ericprud opened this issue Mar 13, 2023 · 2 comments

Comments

@ericprud
Copy link

The playground gives this error

TypeError: Cannot read properties of null (reading 'termType')

(4X) when composing a "@container": "@list" with an @id:

      "entries": [
        {
          "@id": "#3backtick_pass",
          "@type": "http://a.example/ValidationTest"
        }

Changing the @id to @id999 gets rid of the error.

@gkellogg
Copy link
Member

It's an issue with establishing the Base IRI for expanding "#3backtick_pass". You can set a base IRI in Options (although, it says it has a default). Error message might be a bit more informative, perhaps.

Note that using "@type": "@id" in the term definition doesn't really do anything, as each list member is an object.

@ericprud
Copy link
Author

I tried setting the Base but still see the same error.

+1 to more informative error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants