xibyte / jsketcher

Parametric 2D and 3D modeler written in pure javascript
http://web-cad.org
Other
1.49k stars 279 forks source link

Using num run build and had a problem using it #145

Closed YingjuHan closed 2 years ago

YingjuHan commented 2 years ago

I had an error using num run build and had a problem using it: Uncaught (in promise) TypeError: Failed to execute'compile' on'WebAssembly': Incorrect response MIME type. Expected'application/wasm'.

mmiscool commented 2 years ago

If you are using a static build and tossing it on to a generic http server you must make sure that the mime type is added. See https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types https://www.nginx.com/resources/wiki/start/topics/examples/full/