ts-loader Questions
5
When I try to compile a .ts file I get the following error:
Module build failed: Error: Typescript emitted no output for C:\xampp\htdocs\node-api\src\js\server.ts.
at successLoader (C:\xampp\htdo...
Pitapat asked 22/4, 2018 at 18:2
2
Solved
I am trying to use Webpack to compile some typescript using ts-loader but it is not running tsc as I'm expecting. If I make changes to a ts file, webpack is not compiling it back to js, the same ha...
Gastelum asked 28/3, 2017 at 22:45
8
Solved
I build a relay small webpack and typescript demo to play with.
If i run webpack with the webpack.config.js i get this error:
ERROR in ./js/app.ts
Module not found: Error: Can't resolve './MyModul...
Pewter asked 24/4, 2017 at 18:45
6
Using webpack ^v2.2.1, I would like to import a TypeScript module as text, in addition to importing the same module "normally".
I've figured that I probably should use the raw-loader. But it isn't...
Diploblastic asked 6/3, 2017 at 17:15
4
Solved
I try to use typescript 3.7 features like Optional Chaining, Nullish Coalescing. But webpack gives me an error while transpaling.
app: Module parse failed: Unexpected token (50:40)
app: File was ...
Mccarver asked 12/11, 2019 at 6:28
3
Since i updated my project to use the new 2.x release of Vuetify (https://vuetifyjs.com) i get some Type Errors during compile and i don't know how to get rid of them. Properly just my tsconfig is ...
Gladdie asked 21/8, 2019 at 19:50
4
Solved
I am running on a huge project with thousands of .js files that are written in es5, and for many reasons and benefits of TS, we've decided to start migrating to TS, after a couple of days and many ...
Moustache asked 15/6, 2022 at 12:30
2
Solved
Following is my webpack.config.js
var webpack = require('webpack'),
path = require('path'),
yargs = require('yargs');
var libraryName = 'MyLib',
plugins = [],
outputFile;
if (yargs.argv.p) ...
Drawtube asked 10/4, 2018 at 6:44
1
Solved
I have been able to import a local package into a project by running yarn link ../path, which adds a resolution field to the package.json to tell the bundler where to find a package, basically givi...
Expecting asked 10/8, 2021 at 22:30
3
Solved
Edit 1: Added GitHub URL to project
Edit 2: Removing baseUrl from tsconfig.json fixes all problems and using relative imports works fine.
Link: Github
How do I generate a typescript declaration ...
Cepheus asked 25/9, 2018 at 14:16
1
So I was trying to compare the output compiled code by these 2 combinations.
ts-loader
{
test: /\.tsx?$/,
use: 'ts-loader',
}
babel-loader
use: {
loader: 'babel-loader',
options: {
presets...
Armagnac asked 1/2, 2021 at 11:42
1
I'm having issues setting up an React project with yarn workspaces and typescript.
My folder structure is:
-root
-package.json
-workspaces
-web
-common
and my package.json file is:
{
"name...
Smelter asked 24/5, 2018 at 15:58
1
Problem
I'm adding an error boundary to my client-side React app. In development, I want to display the error with a stack trace in the browser window, similar to create-react-app's or nextjs's err...
Duke asked 11/8, 2020 at 20:19
1
What's the most efficient way to emit type declarations for a Typescript project (library) along with code transpiling and bundling?
I'm using webpack, ts-loader and fork-ts-checker-webpack-plugin...
Pierrette asked 5/9, 2018 at 15:45
0
I have a project which happens to be a vs code extension, but I think that's not too relevant.
I have the following structure:
./package.json
./tsconfig.json --> references [ ./client, ./serve...
Marylouisemaryly asked 14/2, 2020 at 20:58
0
I'm authoring a library and I want to provide both a bundle (where all files are compiled together) and a js folder where each module is emitted separately with its .d.ts file next to it. My goal i...
Drandell asked 10/12, 2019 at 7:48
1
Solved
I'm using [email protected], [email protected] and [email protected].
I use Interface/index.ts to manage imports, to organize multiple interface imports.
But When I change interfac...
Ankh asked 15/11, 2018 at 4:10
6
Solved
I have 2 tsconfigs, one for my dev build and one for my prod build.
I choose the tsconfig with the -p flag :
tsc -p dev.tsconfig.json
Ts-loader is looking for a tsconfig.json file. How can I speci...
Celka asked 4/11, 2016 at 15:28
2
I am new to webpack. Currently I am working on angular2 application with webpack. As part of requirement we want to have a settings file which should not be bundled so that one can change URL in se...
1
I have the following rule in my webpack config:
{
test: /(\.tsx?)$/,
use: [{
loader: 'thread-loader'
},
{
loader: 'ts-loader',
options: {
transpileOnly: true,
appendTsSuffixTo: [/\.vue$/...
Fluoride asked 29/9, 2018 at 17:2
0
I'm using ts-loader and fork-fs-checker-webpack-plugin in a project, and it's complaining about node_modules/@types, for example:
ERROR in D:/temp/temp-vscode/temp-electron/application-volume- cha...
Lamarckism asked 14/7, 2018 at 13:18
1
There is a TypeScript, Babel, React, and Karma Sample.
The Webpack config contains babel-loader with ts-loader for .tsx? files.
Please explain why it is needed? Why isn't ts-loader enough?
Counterscarp asked 3/4, 2018 at 7:8
2
I'm installing ts-loader to work with webpack.
Does someone know how to choose which typescript version to use ?
No matter what I do, I always get a message saying
ts-loader: Using [email ...
Swingeing asked 25/11, 2016 at 14:12
1
I found a problem in my app structure and build process using WebPack, TypeScript, and TS-Loader that I thought was caused by TypeScript 2.1.4, but apparently was there the whole time.
You can see...
Pomp asked 22/12, 2016 at 18:2
1
I am building a web app that consists of static HTML and other assets using webpack on Mac OS X 10.11.3. The app talks to an API that is on another server.
I am having trouble building my app usin...
Oath asked 22/2, 2016 at 11:10
1 Next >
© 2022 - 2024 — McMap. All rights reserved.