Skip to content
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

TOML SyntaxError parsing issue on Windows #586

Closed
zachleat opened this issue Jun 25, 2019 · 2 comments
Closed

TOML SyntaxError parsing issue on Windows #586

zachleat opened this issue Jun 25, 2019 · 2 comments
Labels
bug: dependency A problem in one of Eleventy’s dependencies on-hold

Comments

@zachleat
Copy link
Member

jonschlinkert/gray-matter#92

Expected "\n" but end of input found.

Input file: https://github.com/11ty/eleventy/blob/master/test/stubs/custom-frontmatter/template-toml.njk#L1

JavaScript test case: https://github.com/11ty/eleventy/blob/master/test/TemplateTest.js#L1732

Build failure on Windows machines from this: https://travis-ci.org/11ty/eleventy/jobs/550051432 (Works on Linux and Mac https://travis-ci.org/11ty/eleventy/builds/550051427)

Test is now skipped. Unskip test when dependency is fixed.

@zachleat
Copy link
Member Author

Going to call it quits on this one. I’m recommending that folks use https://www.npmjs.com/package/@iarna/toml instead and modified our test to use that one. Updating the docs to reflect this change too.

https://www.11ty.dev/docs/data-frontmatter-customize/#example-using-toml-for-front-matter-parsing

@zachleat
Copy link
Member Author

zachleat added a commit to 11ty/11ty-website that referenced this issue Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: dependency A problem in one of Eleventy’s dependencies on-hold
Projects
None yet
Development

No branches or pull requests

1 participant