question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

External scripts don't work at all

See original GitHub issue

I’ve searched all the docs and blogs on Hubot i could find and dug through the code to figure this out, but i can’t seem to make external-scripts.json work no matter what i do.

I have a *.coffee file in my local /scripts folder, specified it in in external-scripts.json file, and upon running Hubot, he dies saying he can’t find the npm package.

Is there no way to just write a custom hubot script without putting it on npm or the hubot-scripts repo?

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
spajuscommented, Aug 6, 2013

Try providing full system path to script in external-scripts.json. And it should look like this

[ "/opt/hubot-scripts/some.coffee", "/opt/hubot-scripts/other.coffee" ]
0reactions
m9commented, Aug 11, 2013

@jackmcdade i’ve added some notes here, so while PR is reviewed - you can check there

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keeping javascript external - doesn't work - Stack Overflow
Wrap your code inside the dom ready event and it should work, Assuming your path to the external javascript file is correct. $(function(){...
Read more >
Why is my external JavaScript file not working? - Quora
CTRL + SHIFT + DELETE and clear everything. · CTRL + SHIFT + N and new window will open so type the URL...
Read more >
External script doesn't always load when added to Nuxt page ...
I expect the script to load and be available every time the page loads, regardless of whether it was served directly from the...
Read more >
External Javascript file issue - The freeCodeCamp Forum
Most likely, the problem is that you are including your js file in a head tag or somewhere above your main content. By...
Read more >
Why you shouldn't use external javascript files - : Blog - Elxis
Using external javascript files can be harmful to you and your site visitors. Many websites use javascript files located to an other domain....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found