Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug] RunKit Error with antlr4ts - TypeError: Class extends value undefined is not a constructor or null #12

Open
Luna-Klatzer opened this issue Apr 1, 2022 · 2 comments
Labels
bug Bug or issue in the language or API

Comments

@Luna-Klatzer
Copy link
Member

Luna-Klatzer commented Apr 1, 2022

Describe the bug

The package fails to load properly due to an error caused by the dependency antlr4ts. This is most likely caused due to circular imports, meaning this issue likely can't be fixed with updates or restructuring of our source code.

To Reproduce

Steps to reproduce the behaviour:

  1. Use @kipper/base using Node.JS in a JavaScript environment
  2. Include @kipper/base using require()
  3. View error

Expected behaviour

Default inclusion without any error.

Screenshots

Error on RunKit:
image

Desktop (please complete the following information):

  • OS: Unknown (Affects most likely all operating systems)
  • Version: 0.1.1 - 0.8.3

Additional context

@Luna-Klatzer Luna-Klatzer added bug Bug or issue in the language or API question Further information is requested labels Apr 1, 2022
@Luna-Klatzer Luna-Klatzer self-assigned this Apr 1, 2022
@Luna-Klatzer Luna-Klatzer moved this from Todo to Help required in Kipper Language Development Apr 28, 2022
@Luna-Klatzer Luna-Klatzer removed the question Further information is requested label Apr 28, 2022
@Luna-Klatzer
Copy link
Member Author

Luna-Klatzer commented Jun 24, 2022

Still reproducible with the latest release 0.8.3 and antlr4ts@0.5.0-dev.

RunKit Run: https://runkit.com/embed/vewk6ve5pu4k

@Luna-Klatzer Luna-Klatzer changed the title [Bug] RunKit Test Error with antlr4ts - TypeError: Class extends value undefined is not a constructor or null [Bug] RunKit Error with antlr4ts - TypeError: Class extends value undefined is not a constructor or null Jun 24, 2022
@Luna-Klatzer Luna-Klatzer added this to the Stable Kipper Release milestone Jun 24, 2022
@Luna-Klatzer
Copy link
Member Author

Using an updated import configuration of antlr4ts, the dependencies from the package can be imported without any issue. This means that if the package is imported the same way in the source code, the circular import issue could be resolved.

RunKit Run: https://runkit.com/embed/cxtmn6r7f3dj

@Luna-Klatzer Luna-Klatzer moved this from Help required to Todo in Kipper Language Development Jul 29, 2022
@Luna-Klatzer Luna-Klatzer removed this from the Stable Kipper Release milestone Jan 28, 2023
@Luna-Klatzer Luna-Klatzer moved this to Under Consideration in Kipper Language Development Jul 12, 2023
@Luna-Klatzer Luna-Klatzer moved this from Under Consideration to Help required in Kipper Language Development Jul 12, 2023
@Luna-Klatzer Luna-Klatzer removed their assignment Jul 3, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Bug or issue in the language or API
Projects
Status: Help required
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant