I am trying to install a git repo into a project so that I can import the components. I cannot use npm to package the components because we do not have a private npm registry.
when I try to install I get "Support for the experimental syntax 'jsx' isn't currently enabled". I have tried all the solutions here :Support for the experimental syntax 'classProperties' isn't currently enabled but they have not worked. Here is my .babelrc :
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
[
"@babel/plugin-proposal-class-properties"
]
]
}
And package.json:
"name": "i-react",
"version": "1.0.0",
"main": "build/index.js",
"repository": "ssh://......,
"author": "",
"license": "MIT",
"scripts": {
"build": "babel src -d build",
"prepare": "yarn run build"
},
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-syntax-jsx": "^7.10.4",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4"
},
"dependencies": {
"react": "^16.13.1"
}
}