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

Error while deploying to Heroku #7

Closed
jonyroda97 opened this issue Sep 14, 2020 · 5 comments
Closed

Error while deploying to Heroku #7

jonyroda97 opened this issue Sep 14, 2020 · 5 comments

Comments

@jonyroda97
Copy link

/app/node_modules/chalk/source/templates.js:130
		throw new Error(errMessage);
		^
 
Error: Chalk template literal is missing 1 closing bracket (`}`)
    at module.exports (/app/node_modules/chalk/source/templates.js:130:9)
    at chalkTag (/app/node_modules/chalk/source/index.js:219:9)
    at chalk.template (/app/node_modules/chalk/source/index.js:42:38)
    at Object.<anonymous> (/app/index.js:46:26)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
@GiorgioBrux
Copy link
Owner

Sorry for the inconvenience, should be fixed with 861b3df.

@jonyroda97
Copy link
Author

Is there a way to update the deployed instance or do I have to delete and create a new one?

@GiorgioBrux
Copy link
Owner

To update it, download and install the Heroku CLI and git, then run

  • heroku login
  • git clone https://github.com/GiorgioBrux/nitro-sniper-enhanced.git
  • cd nitro-sniper-enhanced
  • git remote add heroku https://git.heroku.com/yourappname.git
  • git push -f heroku master

After you have this setup you can just use

  • git pull
  • git push -f heroku master

Let me know if you have issues.

@jonyroda97
Copy link
Author

New error

/app/node_modules/discord.js/src/client/websocket/packets/handlers/Ready.js:41
        if (!note.length) note = null;
                  ^

TypeError: Cannot read property 'length' of null
    at ReadyHandler.handle (/app/node_modules/discord.js/src/client/websocket/packets/handlers/Ready.js:41:19)
    at WebSocketPacketManager.handle (/app/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:108:65)
    at WebSocketConnection.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:336:35)
    at WebSocketConnection.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:299:17)
    at WebSocket.onMessage (/app/node_modules/ws/lib/event-target.js:120:16)
    at WebSocket.emit (events.js:315:20)
    at Receiver.receiverOnMessage (/app/node_modules/ws/lib/websocket.js:789:20)
    at Receiver.emit (events.js:315:20)
    at Receiver.dataMessage (/app/node_modules/ws/lib/receiver.js:413:14)
    at Receiver.getData (/app/node_modules/ws/lib/receiver.js:352:17)

@GiorgioBrux
Copy link
Owner

GiorgioBrux commented Sep 14, 2020

Should work now (it was discord.js' fault sigh).
If there are more errors say so and I will reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants