Model Generation fails with SyntaxError: Invalid character.
No more specific error message than that, but I've attached the full stack trace
generator_stack_trace.txt
Repro steps
Run kontent-generate --environmentId=xxx --apiKey=xxx (I can provide these values for testing via direct message)
Expected behavior
The models are successfully generated or if there is an issue a descriptive error message is displayed in the console.
Test environment
Node v18.16.0
model-generator v 6.5.1
Additional context
Intercom Conversation
We've checked the type that the process fails on for invalid characters in its name or elements but haven't found any. We also checked the MAPI validation endpoint but all of the returned issues are with variants rather than types.
Brief bug description
Model Generation fails with
SyntaxError: Invalid character.
No more specific error message than that, but I've attached the full stack trace generator_stack_trace.txtRepro steps
Run kontent-generate --environmentId=xxx --apiKey=xxx (I can provide these values for testing via direct message)
Expected behavior
The models are successfully generated or if there is an issue a descriptive error message is displayed in the console.
Test environment
Node v18.16.0 model-generator v 6.5.1
Additional context
Intercom Conversation We've checked the type that the process fails on for invalid characters in its name or elements but haven't found any. We also checked the MAPI validation endpoint but all of the returned issues are with variants rather than types.
Screenshots