Когда я пытаюсь подключиться:
mix.ts('resources/assets/js/app.ts', 'public/js/app.js')
.react('resources/js/app.ts', 'public/js/app.js');
Появляется ошибка:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.entry should be one of these:
function | object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string]
-> The entry point(s) of the compilation.
Итак, я разрешаю это так:
`mix.react('resources/js/index.js', 'public/js/app.js')
.webpackConfig({
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
exclude: /node_modules/,
},
],
},
resolve: {
extensions: ['.ts', '.tsx'],
},
})`
Но я не уверен, что это правильно, какие-либо предложения ??? я буду рад, спасибо)