Page 1 of 1

Issue with publishing to web

Posted: Mon Mar 22, 2021 11:26 am
by zm00
I have followed the steps outlined in the documentation, however when I publish to web I get an error stating that "Compilation to WASM appears to have failed". It produces some of the web files but not mdl.js or mdl.wasm.

Is anyone aware of what could be causing this? (I don't have admin rights for my computer so would need to be able to explain clearly what the fix needs to be to IT)

Re: Issue with publishing to web

Posted: Mon Mar 22, 2021 11:46 am
by Administrator
What versions of GIT, Python and Emscripten do you have installed?

And are you on MacOS or Windows?

Re: Issue with publishing to web

Posted: Mon Mar 22, 2021 12:19 pm
by zm00
I am using windows and have the versions:
Git version 2.30.1
Python version 3.9.2

Re: Issue with publishing to web

Posted: Mon Mar 22, 2021 1:34 pm
by Administrator
What version of Emscripten?

Re: Issue with publishing to web

Posted: Mon Mar 22, 2021 2:07 pm
by zm00
Emscripten version 2.0.15

Re: Issue with publishing to web

Posted: Mon Mar 22, 2021 3:49 pm
by Administrator
ok. If you edit
C:\Users\Public\Vensim\COMP\wasm\wasm_compile.bat

and make sure the last line is "pause". Run the compile to web again and the compile window should pause so that you can see the errors. Can you paste the output here?

Re: Issue with publishing to web

Posted: Tue Mar 23, 2021 3:44 am
by tomfid
Also, be sure you're running the latest Vensim - one of the 8.1.x versions was mismatched with an emscripten update as I recall.

Re: Issue with publishing to web

Posted: Tue Mar 23, 2021 3:42 pm
by zm00
I have edited the file to have pause however it is still closing. The error says that it is unable to find mdl.js and mdl.wasm.

Re: Issue with publishing to web

Posted: Tue Mar 23, 2021 3:45 pm
by Administrator
Can you upload a screen shot of these errors please?

Re: Issue with publishing to web

Posted: Wed Mar 24, 2021 12:13 pm
by zm00
Of course, here you go

Re: Issue with publishing to web

Posted: Wed Mar 24, 2021 12:28 pm
by Administrator
It looks like it's not getting to the line where is calls the emscripten compiler.

The batch file to compile has the following lines,

Code: Select all

del web\mdl.js
del web\mdl.wasm
mkdir web
Which are executed (the "could not find" and "a subdirectory or file." show this).

Does the compile process just stop at this point?

Re: Issue with publishing to web

Posted: Wed Mar 24, 2021 1:45 pm
by zm00
Yes it just stops and throws "Compilation to WASM appears to have failed" error

Re: Issue with publishing to web

Posted: Sun May 09, 2021 7:24 am
by Yada6970
Any updated on this? I am facing the same issue

Windows 10
Python 3.9
Vensim 8.1.X

Re: Issue with publishing to web

Posted: Sun May 09, 2021 8:20 am
by Administrator
Yada6970 wrote: Sun May 09, 2021 7:24 am Any updated on this? I am facing the same issue

Windows 10
Python 3.9
Vensim 8.1.X
Can you start a new thread please and provide some output so we can try and help?