O'Reilly logo
  • Philip Garrett thinks this is interesting:



Cover of Node.js 8 the Right Way


To avoid linting errors, this should be:

javascript import * as templates from './templates'; // no .ts extension

For this to work properly, you need to add the following stanza to your webpack.config.js and restart node: javascript module.exports = { ..., resolve: {extensions: [".ts", ".tsx", ".js"] }, };