Closed scottandrew closed 3 years ago
Hi, thx for the issue.
Can you provide more info?
I just bootstrapped an app with create-react-app
and I successfully installed the package, both with yarn and npm.
The package.json bootstrapped + the lib:
"name": "test",
"version": "0.1.0",
"private": true,
"dependencies": {
"@elgorditosalsero/react-gtm-hook": "^2.0.7",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Example of the running app with the lib:
Closing due to inactivity.
Running npm with React 17.0.1 or above you get the following error.