I have added some conditional defines to a webcore project and while Delphi seems to recognise them Pas2JS doesn't. Here is an example:
when compiling I get the exception:

Any ideas?
Where did you do the define?
If at project level, you should see the define on the command-line like
-dDEFINENAME
All these years with webcore and I never realised that. I thought that the command line string for Pas2JS would be taken from the project settings.
Obviously need to put them in both places.
Thanks