Answer the question
In order to leave comments, you need to log in
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?
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question