Failing to use 3dm importing on App created

Good morning my friends,
I would like to ask you for a help. I have been trying to add this 3dm importing function (rhino-developer-samples/rhino3dm/js/node/Sample3dmReader at 7 · mcneel/rhino-developer-samples · GitHub) to my App component. The weird is that when I use it alone in a js file I do not get any errors, but once I add it to my code it throws a magic word error and it does not do what it intended to.

My repository is this one: (915.0 KB)
Here is my project folder. I appologize for having posted my gitlab repo as most of you have a github account.

I get this error here:
Erro: RuntimeError: abort(CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f @+0). Build with -s ASSERTIONS=1 for more info.