-
Notifications
You must be signed in to change notification settings - Fork 15
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
Comments Break Parsing Logic #57
Labels
bug
Something isn't working
Comments
ddhorstman
changed the title
TypeError: Cannot read properties of undefined (reading 'filter')
Comments Break Parsing Logic
Feb 18, 2022
I can't seem to recreate this issue. Can you paste in the schema you are using? |
I'm encountering that same issue. It occurs every time I'm using comments before defining a model:
Both using Aurora 1.3.3 running with node v16.13.0 on linux, with the following config: {
"files": [
"./modelA.prisma"
],
"output": "./schema.prisma"
} Error Output
Comments before // Comment
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
// Comment
generator client {
provider = "prisma-client-js"
}
// Comment
enum TestEnum {
TEST
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
It would seem that the presence of comments in my files is confusing
aurora
. In my org, we like to use comments as dividers to make our files easier to navigate, like so:But the presence of a single
//-
sequence causes aurora to crash.To Reproduce
Author
andBook
schemas from README.md, and set up
aurora.config.json` to combine them.//-
anywhere in either file.aurora
Expected behavior
The two schemas are combined into a single schema
Actual Behavior
The following error is printed:
Desktop (please complete the following information):
Screenshots
The text was updated successfully, but these errors were encountered: