Top "Ts-loader" questions

Webpack cant resolve TypeScript modules

I build a relay small webpack and typescript demo to play with. If i run webpack with the webpack.config.…

javascript typescript webpack ts-loader
Why use babel-loader with ts-loader?

There is a TypeScript, Babel, React, and Karma Sample. The Webpack config contains babel-loader with ts-loader for .tsx? files. Please …

typescript babel-loader ts-loader
TSLoader + Babel Polyfill : You may need an additional loader to handle the result of these loaders while running npm run build

I would like to use ts-loader with babel-polyfill but without babel-loader. But when I try to build the project, I …

node.js reactjs babel-polyfill ts-loader
Webpack ts-loader : change tsconfig filename

I have 2 tsconfigs, one for my dev build and one for my prod build. I choose the tsconfig with the …

typescript webpack tsconfig ts-loader
Module not found: Error: Can't resolve 'ts-loader'

Following is my webpack.config.js var webpack = require('webpack'), path = require('path'), yargs = require('yargs'); var libraryName = 'MyLib', plugins = [], …

typescript webpack ts-loader
Webpack cant compile ts 3.7 (Optional Chaining, Nullish Coalescing)

I try to use typescript 3.7 features like Optional Chaining, Nullish Coalescing. But webpack gives me an error while transpaling. app: …

typescript webpack ts-loader
Webpack doesn't bundle TypeScript

I run into the issue of bundling my TS projects. It seems like ts-loader doesn't recognise TypeScript syntax. The errors …

typescript webpack ts-loader
Module build failed: Error: Typescript emitted no output for

When I try to compile a .ts file I get the following error: Module build failed: Error: Typescript emitted no …

typescript webpack ts-loader
Webpack cannot always resolve the TS loader

This is my original webpack config file, consisting of two different configurations which both are used: const ExtractTextPlugin = require('extract-text-webpack-plugin') …

node.js webpack ts-loader