Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes codeoverflow-org/nodecg-io#829
This does run with node.js but only compiles using hacks and tests are failing because of (to me) mysterious errors.
Apparently, I am too dumb to understand ES modules given the time wasted on this, without getting it working.
The main two problems are:
axios
but node.js doesn't seem to understand the default export and requiresaxios.default
. See my FIXME comments in the code. Foraxios
this might be fixed by upgrading to an axios version that is written is ES modules (haven't tested that yet) but this still remains withCodeBlockWriter
.Config files (eslint, prettier, jest) are currently left at CommonJS and will be migrated if possible later.
I'll look into this later after some time has passed. Tips on what I am doing wrong are obviously very appreciated as well.