V
V
Vladislav Verilov2022-04-01 20:09:30
React
Vladislav Verilov, 2022-04-01 20:09:30

Error while compiling laravel mix, how to fix?

When transferring the front from react to laravel back, a compilation error occurs, complains about an object that works fine on the front. Tell me how to fix this?624731c4deb10442267884.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2022-04-01
@inefablecl

There is a type indication. This TypeScript
Mix also knows how to work with TypeScript. But for this you need to build using a separate method - mix.ts()
See the docs https://laravel-mix.com/docs/6.0/mixjs for more details .
Or rewrite to native javascript. Specifically, in this place it is enough to remove the indication of the type.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question