documentation
documentation copied to clipboard
Task/update docs tests failing on master
Results of running npm run build
and assessing npm test
on master.
On master running npm test
yields:
Update: above was resolved by running npm ci
first so I dropped the commit to amend tests.
Running npm run build
results in self documentation breaking:
Why are there differences in CI and local? I'm running node 14.18.1 but locally tests fail due to the additional \\
but in CI I can see it failing from the lack of. Does anyone know?
@DavideDaniel you need to update your local packages, just execute npm ci
On master, on node v14.18.1, ran npm ci
and then npm run build
and the command breaks in the midst of parsing own file.
Investigating underlying issue with [email protected]
but if you don't have this happening on your end @anthony-redFox , please let me know.
The problem is when konan
parses https://github.com/documentationjs/documentation/blob/master/src/output/html.js#L23-L26
The dynamic import statements are not properly evaluated here https://github.com/egoist/konan/blob/master/index.js#L40
This is causing npm run build
to break the self documenting, which probably means it would break for others as well.
There is an option to disable detecting dynamic imports: https://github.com/egoist/konan#dynamicimport, which does seem to fix the issue.