- Clone the repository
- Install all dependencies
pnpm install
Note: You can also try removing the pnpm-lock.yaml
file before installing, but it doesn't seem to make any difference.
- Run the
playtest
command.
devvit playtest YOUR_SUBREDDIT
It should output this:
[tsc] Property 'includes' does not exist on type 'string[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2016' or later.; line 11, column 16 in file /home/user/path/to/devvit-app/src/main.ts:
Property 'includes' does not exist on type 'string[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2016' or later.
- Downgrade
@devvit/public-api
from0.10.16
to0.10.17
. - Use NPM
- ubuntu: 22.04.4 LTS
- node: 20.11.1
- devvit: @devvit/cli/0.10.17 linux-x64 node-v20.11.1
- pnpm: 8.15.4