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
- Install aurora.
- Pick the
Author and Book schemas from README.md, and set up aurora.config.json` to combine them.
- Add
//- anywhere in either file.
- Run
aurora
Expected behavior
The two schemas are combined into a single schema
Actual Behavior
The following error is printed:
/ \ _ _ _ __ ___ _ __ __ _
/ _ \ | | | | | '__| / _ \ | '__| / _` |
/ ___ \ | |_| | | | | (_) | | | | (_| |
/_/ \_\ \__,_| |_| \___/ |_| \__,_|
TypeError: Cannot read properties of undefined (reading 'filter')
at /home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:103:84
at Array.map (<anonymous>)
at /home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:102:59
at step (/home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:44:23)
at Object.next (/home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:25:53)
at fulfilled (/home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:16:58) Aurora could not parse the schema at ./src/modules/workers/worker-model.prisma. Please ensure it is of a proper format.
/home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:103
model.extendedFields = attributeData_1[model.name].filter(function (attribute) { return attribute.isFieldAttribute; });
^
TypeError: Cannot read properties of undefined (reading 'filter')
at /home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:103:84
at Array.map (<anonymous>)
at /home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:102:59
at step (/home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:44:23)
at Object.next (/home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:25:53)
at fulfilled (/home/davidhorstman/GitHub/clipboard-staffing-api/node_modules/prisma-aurora/lib/helpers/parseSchema.js:16:58)
Desktop (please complete the following information):
- OS: Windows 10, WSL2 (Ubuntu 20.04)
Screenshots

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
AuthorandBookschemas from README.md, and set upaurora.config.json` to combine them.//-anywhere in either file.auroraExpected behavior
The two schemas are combined into a single schema
Actual Behavior
The following error is printed:
Desktop (please complete the following information):
Screenshots
