Open m1ga opened 4 months ago
@janvennemann Can you please check that in the end of this sprint? Thanks a lot!
:+1: thanks. I've added some test instructions.
My current workaround is to remove the test/
folder from that node_module and it will build again. Patching hyperloop works too but I didn't want to do it on all machines :-)
The hooks in: https://github.com/tidev/hyperloop.next/blob/master/android/hooks/tasks/scan-references-task.js#L301 https://github.com/tidev/hyperloop.next/blob/master/iphone/hooks/hyperloop.js#L587 include all files and tries to babel parse them. Depending on your files it will also include node_modules folders that you don't want to have in there (e.g. https://github.com/inspect-js/has-symbols/issues/1 produces an error).
It would be nice to have an option to exclude e.g.
node_modules/**/test
to be included/parsed. PoC:makes it build again. Of course it should be a config option and not just the fixed node_modules folder. We could open
.babelrc
because that can contain:check the app folder if the file is there, then read the ignore node and the content.
Test
app/lib
runnpm i has-symbols