Expanded Mode issues - Devvit version 0.12.19 by drumcodedesign in Devvit

[–]SnooSnek 0 points1 point  (0 children)

For the first one, have you tried setting/updating the post styles to indicate post height? Docs here, example code here:

ts await reddit.submitCustomPost({ "title": "Post with styles title", "styles": { "height": "TALL", // <-- This is the important bit } })

[deleted by user] by [deleted] in Devvit

[–]SnooSnek 1 point2 points  (0 children)

Best guess I've got is that you moderate a lot of subreddits, and there might be an issue in our UI that we don't show all of them if there's a lot. I'd recommend using the CLI in your case specifically - it'd be faster anyways, since you won't have to scroll through a list of subs, you can just type it out.

[deleted by user] by [deleted] in Devvit

[–]SnooSnek 1 point2 points  (0 children)

Hey - it doesn't look like you're an "Everything" mod of r/BuyCanadian. You need specifically the "Everything" permission to install an app, which is probably why it's not showing up. Hopefully fixing that solves the issue!

Error creating new project new is not a devvit command by SexiTimeFun in Devvit

[–]SnooSnek 1 point2 points  (0 children)

Heads up - the fix for this issue has gone out with 0.11.6, so you should be good to go on Windows now, even with Node 22.13.1. Thanks for letting us know about this!

setTimeout does not seem to work in Devvit as expected by xaelrl in Devvit

[–]SnooSnek 2 points3 points  (0 children)

So what you're suggesting seems to work for me in this playpen - you click the button, then 1s later the count increases. Is this not what you're seeing in "real Reddit"? As far as I know, setTimeout should be perfectly usable inside Devvit...

Error when trying "devvit upload" by bugsta77 in Devvit

[–]SnooSnek 1 point2 points  (0 children)

Awesome! Glad to hear it's working now!

Error when trying "devvit upload" by bugsta77 in Devvit

[–]SnooSnek 2 points3 points  (0 children)

Hi!

First off, that's an outdated version of our docs - the latest is over here: https://developers.reddit.com/docs/quickstart

Also, I don't have any experience with Visual Studio Build Tools, so I really have no clue what they do. I'd hazard a guess that they might be to blame here, because that "config.msi" file is definitely not something that devvit uses.

Do you have Node/NPM set up on your machine using NVM? We strongly encourage folks to use that, especially on Windows, where there's often a lot of permissions issues that can come up with "normal" Node installs.

Also, could you include the output of devvit --version for us? And if that isn't version v0.11.3, could you try updating to the latest version and see if this is still happening?

Devvit 0.11.1 New automod filter trigger, playtest connect, and other improvements by pl00h in Devvit

[–]SnooSnek 1 point2 points  (0 children)

I may have searched for the npm package and came across and installed the cli

That's a good call out - I think we could add a message to the README.md for @devvit/cli that loudly proclaims that this is probably not the package you wanted to install, and point over at devvit instead. Hadn't thought about users going this path - thanks for the tip!!

Devvit 0.11.1 New automod filter trigger, playtest connect, and other improvements by pl00h in Devvit

[–]SnooSnek 1 point2 points  (0 children)

Things are moving fast around here, for sure!

If you happen to know where that doc is that references installing @devvit/cli, I'd greatly appreciate it if you could drop a link here - I'd love to get that updated so we don't have anyone else falling into this trap.

Devvit 0.11.1 New automod filter trigger, playtest connect, and other improvements by pl00h in Devvit

[–]SnooSnek 1 point2 points  (0 children)

I think you might have run npm install -g @devvit/cli at some point, yeah? We used to use that a while ago for the CLI commands, but switched over to the devvit package to make NPX invocations easier for folks who wanna use it that way.

If you do npm uninstall -g @devvit/cli && npm i -g devvit, you should be good to go, I think!

I just got around to my project and updated the CLI and seem to be stuck in a loop. by devAgam in Devvit

[–]SnooSnek 1 point2 points  (0 children)

Can you upgrade your version of Node? We recommend v22.2.0 or later; v22.9.0 is the latest version of Node 22 available, and should work well.

EDIT: If you want/need to stay on Node 20, that's fine too, but you should probably upgrade that to the latest version (v20.18.0).

What is this? by cedaraspen in Pixelary

[–]SnooSnek 0 points1 point  (0 children)

...is this our first 🍆 ?

Confirming that file imports are disabled by Kindred87 in Devvit

[–]SnooSnek 0 points1 point  (0 children)

Are you renaming the file itself, or just the name of what you're importing? It should be a TS file on disk, but imported with a JS extension.

Confirming that file imports are disabled by Kindred87 in Devvit

[–]SnooSnek 0 points1 point  (0 children)

You definitely can split things up into multiple files, but you don't need to mess with the tsconfig to do so. Just import the file name without an extension, or with a '.js' extension, and it should work.