-
-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useIntersectionObserver unexpected token #93
Comments
|
Thanks @jeanlucmongrain :) |
I use react-scripts@4.0.3 and have the same error message. Removing node_modules didn't work for me.
I use craco to tune my build, here's the config to satisfy babel: module.exports = {
babel: {
// need this for usehooks-ts with react-scripts@4
plugins: [
['@babel/plugin-proposal-optional-chaining'],
['@babel/plugin-proposal-nullish-coalescing-operator'],
],
}
} |
Thanks @arusak! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running 2.0.2 just fine and when I upgrad eto 2.2.2:
The text was updated successfully, but these errors were encountered: