Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] deploy.ts Uncaught ReferenceError: Cannot access 'Channel' before initialization #284

Closed
deweller opened this issue Jan 12, 2022 · 0 comments · Fixed by #285
Closed
Labels
bug 🐛 Something isn't working

Comments

@deweller
Copy link

What's the bug?
Throws Uncaught ReferenceError: Cannot access 'Channel' before initialization when attempting to use deploy.ts

How do we reproduce it?
Run this code using deno:

import * as deploy from 'https://deno.land/x/[email protected]/deploy.ts'

console.log('Harmony - Deploy Example')

const env = Deno.env.toObject();
deploy.init({
  token: env.BOT_TOKEN,
  publicKey: env.CLIENT_ID,
})

What should have happened?
Should run successfully without error

What is actually happening?
Received this error message:

error: Uncaught ReferenceError: Cannot access 'Channel' before initialization
export class TextChannel extends Channel {
                                 ^
    at https://deno.land/x/[email protected]/src/structures/textChannel.ts:26:34

What versions you're using?

  • Deno: deno 1.17.2 (release, aarch64-apple-darwin)
  • Harmony: Harmony 2.4.0

Do you have anything to tell us more about the bug?
Happens on denol and in the CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant