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.

Commands fails when definition files are preset

See original GitHub issue

Here is the case

I would have the following files

/commands
  build.d.ts
  build.js

For some reason here https://github.com/infinitered/gluegun/blob/e30b03f0292ab52124a1076952126456655c6459/src/loaders/module-loader.ts#L13-L14 Node is actually requiring the .d.ts file instead of the JavaScript file. 🤷‍♂️

Node version: v10.10.0

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
yordiscommented, Jan 24, 2019

@cmckni3 @jamonholmgren you could fork https://github.com/straw-hat-team/fetcher and downgrade to "@straw-hat/cli": "0.10.1" since that version has declarations on it.

Run yarn release and notice that it will fail.

1reaction
yordiscommented, Jan 8, 2019

@jamonholmgren confirmed, this behavior is happening and it is not using node-ts. I will try to put an example project for you,

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix a "Command not found" error in Linux - Red Hat
Learn five ways to deal with a "Command not found" error, Linux users. ... "Command not found," this means the script or file...
Read more >
Common Mistakes that cause Automated Processing to Fail
Attempts to write files to subdirectories will fail. All files included via \include instead of \input must be in the top level directory....
Read more >
Error handling in playbooks - Ansible Documentation
Error handling in playbooks · Ignoring failed commands · Ignoring unreachable host errors · Resetting unreachable hosts · Handlers and failure...
Read more >
Bash Reference Manual - GNU.org
Files containing commands can be created, and become commands themselves. These new commands have the same status as system commands in ...
Read more >
2. Shell Command Language
The shell executes a function (see Function Definition Command), built-in (see Special Built-In Utilities), executable file, or script, giving the names of ...
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