- Install software:
make install
- Start UI:
make dev
- Navigate to http://localhost:3000 for a working version of the page
- Navigate to http://localhost:3000/bug for the same page with added sanctuary import
- 500:
process
is accessed by sanctuary but it doesn't exist, svelte interprets it as a module and throws an error. - 500:
module
: Apparently, the svelte compiler environment looks like it's a node environment, thereforemodule
andmodule.exports
exists and sanctuary is misguided to execute the wrong code path.
- Add the test that checks whether
module.path
isundefined
- this is the case in the svelte compiler environment while in nodemodule.path
is a string.
- Please not that this repository uses the
svelte@next
repository which isn't supported / released yet. I did'nt have the time to try to reproduce the bug with the regularsvelte
framework but I think it will produce the same error because it also uses a compiler.