Closed maximedaoust closed 4 years ago
It seem related to path
being null (since typeof null === 'object'
) here : https://github.com/frctl/fractal/blob/1c708d9442bd34c8cab329fcd2abf6a98e922c37/src/api/docs/source.js#L83
https://github.com/frctl/fractal/blob/1c708d9442bd34c8cab329fcd2abf6a98e922c37/src/api/docs/source.js#L107
Setting the
fractal.docs.engine(twigAdapter);
work as expected for markdown files located in the folder defined byfractal.docs.set('path', ...);
, but it seem to break the note panel / note templating engine for a component with a readme.md (https://fractal.build/guide/components/notes.html#the-readme-md-file)It still break even if I simply use plain text, nothing related to twig. The error only occurs on component with a readme.md file.
And this is the error in question :