Hi in Gatsby I am getting error
ERROR #98123 WEBPACK
Generating JavaScript bundles failed
/project/node_modules/gatsby-plugin-translate-url s/utils/wrap-page-element.js: Support for the experimental syntax 'jsx' isn't currently enabled (11:5):
We are using Nx.dev so we created template for Gatsby and there added our Gatsby project.
tsconfig.json
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "preserve",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"resolveJsonModule": true,
"isolatedModules": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.app.json"
}
],
"exclude": ["node_modules"]
}
.babelrc
{
"presets": [
[
"babel-preset-gatsby",
{
"targets": {
"browsers": [">0.25%", "not dead"]
}
}
]
],
"plugins": []
}
I really don't know where is the problem. When I comment plugin gatsby-plugin-translate-urls
build succeeded.