eBay / nice-modal-react

A modal state manager for React.
https://ebay.github.io/nice-modal-react
MIT License
1.97k stars 112 forks source link

TS1005: ',' expected. #1

Closed dragonfire1119 closed 2 years ago

dragonfire1119 commented 2 years ago

I keep getting TS1005: ',' expected. at @ebay/nice-modal-react/lib/esm/index.d.ts(41,59)

This looks like a nice way to tackle modals thanks!

supnate commented 2 years ago

Hi @dragonfire1119 , which version of typescript do you use? It seems a version issue: https://stackoverflow.com/questions/46398916/typescript-error-ts1005-expected-ii/46399668

dragonfire1119 commented 2 years ago

@supnate I thought it could be a version mix-up, so I tried to update before posting this and it showed the error still. Then I tried again and it's working! The magic of node_modules LOL. Thanks for your time.