`
./node_modules/vega-label/build/vega-label.module.js 557:33
Module parse failed: Unexpected token (557:33)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| return false;
| }
Issue: craco build throws this error:
versions: craco 5.9.0 craco-esbuild 0.5.1
` ./node_modules/vega-label/build/vega-label.module.js 557:33 Module parse failed: Unexpected token (557:33) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | return false; | }
// craco.config.js ` const CracoEsbuildPlugin = require('craco-esbuild');
module.exports = { plugins: [{ plugin: CracoEsbuildPlugin }] }; `
I tried using the target in craco.config.js but no success.
Any advice ?