Search found 2 matches
- Fri Apr 26, 2024 6:56 pm
- Forum: Node.js scripting
- Topic: catch (err) -> err.message
- Replies: 3
- Views: 4850
Re: catch (err) -> err.message
Found an interesting, fairly straightforward way to log error messages. For some reason, wrapping error in a template literal automatically coerces the `unknown` error type to a `string` type instead. Haven't run into unexpected error handling with this yet, but hopefully it helps anyone running int...
- Fri Apr 19, 2024 6:22 pm
- Forum: Node.js scripting
- Topic: importing/require myclass.ts module
- Replies: 2
- Views: 3625
Re: importing/require myclass.ts module
Spent a few days back and forth trying to set configurations in tsconfig.json to fix this. After enough failures, found a very illogical answer to this. const myclass = require('./myclass'); should be const myclass = require('../myclass'); For whatever reason, NodeScriptExecutor.js defaults every si...