Hi all,
after recent upgrade to latest we get this error from esbuild when starting a webpack server. Our rules are these:
{
loader: 'esbuild-loader',
test: /\.js$/,
options: {
target: 'es2022', // https://esbuild.github.io/content-types/#javascript
},
exclude: [
/(ext-)/,
/node_modules[\\/]core-js/,
/node_modules[\\/]webpack/
],
},
And our only imports are these:
import Uppy from '@uppy/core';
import XHRUpload from '@uppy/xhr-upload';
import getDroppedFiles from '@uppy/utils/lib/getDroppedFiles';
We get rid of the error only if we exclude uppy frrom esbuild compile. Also looked in node_modules and utils package has tsconfig looking for the shared one, but there’s no file indeed in uppy root directory.
Any idea why this happens and how to fix properly ?
Vadim