You’re running a project with the v1 compatibility flag set in config.lua.
As @agramonte said, that is quite old and you should either #1 not use it, or #2 convert it to v2.
To do #2,
a. remove the flag from config.lua
b. run the project in the simulator.
c. follow-up on every failure (you will encounter many) and fix them.
Note: Eventually, you’ll see a pattern and be able to fix many issues at the same time by searching the code/files for similar old-style function calls, etc.
To do #1, tell us what example (with a link if possible) you’re using and what you hope to use it for. We may be able to suggest an alternative.