Getting "Failed to parse syntax of config file" error following CONTRIBUTING.md setup
Hi everyone!
I'm working on my first contribution to Prisma and following the setup instructions in
Issue:
The template
The problematic config (from the template):
What works:
When I replace it with a minimal config, it works fine:
My Analysis:
Looking at the validation code in
1.
2.
3. The
Questions:
- Is the sandbox template config outdated?
- What's the correct way to set up a basic sandbox for development following CONTRIBUTING.md?
- Should I submit a PR to update the sandbox templates to match the current validation schema?
Any guidance would be appreciated!
I'm working on my first contribution to Prisma and following the setup instructions in
CONTRIBUTING.md. I've successfully set up my sandbox environment (sandbox/my-repro), but I'm running into a validation error with the config file.Issue:
The template
prisma.config.ts that came with the sandbox folder throws a parsing error when running: The problematic config (from the template):
What works:
When I replace it with a minimal config, it works fine:
My Analysis:
Looking at the validation code in
packages/config/src/PrismaConfig.ts, and then following the root cause, I think the issue is:1.
earlyAccess is not a recognized property (should be experimental?)2.
migrate should be migrations? 3. The
adapter config structure doesn't match the expected schemaQuestions:
- Is the sandbox template config outdated?
- What's the correct way to set up a basic sandbox for development following CONTRIBUTING.md?
- Should I submit a PR to update the sandbox templates to match the current validation schema?
Any guidance would be appreciated!