I’m trying to create a tag extension in Magento PWA studio but it is throwing the below error. I’m following this documentation to create a tag extension.
ERROR in ./tagList/src/TagList/tagList.js 24:11
Module parse failed: Unexpected token (24:11)
File was processed with these loaders:
* ./node_modules/@magento/pwa-buildpack/node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
You may need an additional loader to handle the result of these loaders.
| // Converts the array of tag strings into an array of Tag components
| const tagList = categories.map((category) => {
> return <Tag key={category.name} value={category} />;
| });
|
Node,Yarn,NPM version:
$ node -v
v14.19.0
$ npm -v
6.14.16
$ yarn -v
1.22.17
I’m using Magento 2.4.3 CE as a backend URL.