You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because ths history reason, i cant eject react project.so i have to fix react-scritpts to match my project.
But when i change webpack.config.js :
{
test: /.(js|mjs|jsx|ts|tsx)$/,
include: paths.appSrc,
// loader: require.resolve('babel-loader'),
//options:{...}
use:[
{other loader},
{babel-loader}
]
}
It will throw error:
TypeError: Cannot read properties of undefined (reading 'options')
By reading the source code and identifying the problem, getBabelLoader did not consider the case where use is an array.
The text was updated successfully, but these errors were encountered:
Because ths history reason, i cant eject react project.so i have to fix react-scritpts to match my project.
But when i change webpack.config.js :
{
test: /.(js|mjs|jsx|ts|tsx)$/,
include: paths.appSrc,
// loader: require.resolve('babel-loader'),
//options:{...}
use:[
{other loader},
{babel-loader}
]
}
It will throw error:
TypeError: Cannot read properties of undefined (reading 'options')
By reading the source code and identifying the problem, getBabelLoader did not consider the case where use is an array.
The text was updated successfully, but these errors were encountered: