#Ts error

1 messages · Page 1 of 1 (latest)

long sinew
#

Need help

buoyant cradleBOT
#

<@&987246964494204979> please have a look, thanks.

buoyant cradleBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

#

You can use </chatgpt:1108714622413963314> to ask ChatGPT about your question while you wait for a human to respond.

lime sundial
long sinew
buoyant cradleBOT
long sinew
#

In this part,

if (src[0] === '/') {
            if (src[1] === '/') {
                while (src[0] !== '\n' && src.length > 0) {
                    src.shift();
                }
                continue;
            } else if (src[1] === '*') {
                src.shift();
                src.shift();
                while (src.length > 0) {
                    if (src[0] === '/' && src[1] === '*') {
                        src.shift();
                        src.shift();
                        break;
                    }
                    src.shift();
                }
                continue;
            }
        }
buoyant cradleBOT
long sinew
#

i get this error:

#

This comparison appears to be unintentional because the types '"/"' and '"\n"' have no overlap.deno-ts(2367)

lime sundial
long sinew
#

No compilation error.

#

It just messes up other stuff

#

Unreconized character found in source: 34 "

#

thats what happens when you run it

#

Wait.