IDE seems to try to compile CameLigo code with a different syntax setting
Here is the original link reporting the issue: https://github.com/claudebarde/taquito-pinata-tezos-nft/issues/1#issuecomment-983923179
When opening the web IDE from the link in the comment, the IDE opens with the CameLigo setting, which is correct. However, when compiling the contract, an error is raised about a syntax error, but the syntax is correct, so my guess would be that the web IDE is actually using another syntax in the background and not CameLigo.