Open avwie opened 1 year ago
It's actually pretty easy to reproduce. Just pick the BooleanExpression demo and run it in a nodeJS target in production.
ParseException: Could not parse input: UnparsedRemainder(startsWith=id@2 for " &" at 1 (1:2))
So this library does not work in JS production environments.
I've made a toy language: https://github.com/avwie/borklang
Everything works correctly on the JVM and when running
jvmTest
andjsTest
. Also my web project is working correctly when I usebrowserDevelopmentRun
.However, when I use
browserDistributionRun
or make a web-distributable, the tokenizer/parsers don't work correctly.For instance:
This returns 55 in development mode, but in production mode I get:
Invalid number format: 'fi'
I found no way on how to debug this, because I loose a lot of information with productionRun.