'You may need an appropriate loader to handle this file type. Error when trying to use new library
I have a problem with my webpack config. I installed new library and have next error message:
index.js:2178 ./node_modules/.../name.js
Module parse failed: Unexpected token (26:4)
You may need an appropriate loader to handle this file type.
My webpack.config file:
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
},
{
test: /\.ts$/,
enforce: 'pre',
use: [
{
loader: 'tslint-loader',
options: {
tsConfigFile: './tsconfig.json',
},
},
],
}...
Need idea how to solve it, I am using webpack 4, saw a few solutions but it didn't help me.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
