F
F
fan92rus2019-09-16 13:57:39
typescript
fan92rus, 2019-09-16 13:57:39

How to solve the problem with TS import?

Module parse failed: Unexpected token (4:12)
You may need an appropriate loader to handle this file type.
|
| export class AdminPanelClient {
>     private instance: AxiosInstance;
|     private baseUrl: string;
|     protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;

 @ ./src/WebApi.js 5:0-50 111:8-24
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://192.168.0.100:8081/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

Here is the compilation error..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sashqa, 2019-09-16
@fan92rus

Maybe this will help
you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question