ariakit: reakit-theme-default/ts/index.d.ts (3,45): Cannot find module 'styled-tools'.
Bug report
What is the current behavior? If there is a heard reload (force reload from the browser) or create-react-app (with the typescript scripts) hot reloads/reloads the following error appears.
reakit-theme-default/ts/index.d.ts (3,45): Cannot find module 'styled-tools'.
Won’t go away unless i save inside a typescript file and let it reload it self.
If the current behavior is a bug, please provide the steps to reproduce.
Use any reakit components when using the reakit-theme-default with the Provider
component used
What is the expected behavior?
It should not cause that error
Other relevant information: my related packages versions “react-scripts-ts”: “3.1.0”, “reakit”: “^0.15.7”, “reakit-theme-default”: “^0.1.8”, “styled-tools”: “^1.5.1”
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (6 by maintainers)
I didn’t look, sorry. I just meant “reload thing” lol
try on vscode:
cmd+shift+p
select typescript version, set to workspace. can you pin the issue down to TS? does it happen if you don’t use TS?Doesn’t make sense to me. I’d guess it’s a local thing.
rm -fr node_modules && yarn
Let me clone it!
Hard refresh after opening the website doesn’t crash
let me modify a
.ts
file and wait 5 modified and saved a file (added whitespace) refresh with no wait, no crash. waiting 5 now. still no crash.Hard reload, yep or just a normal one really. It’s really strange! As soon as i get home i’ll fire a repro repo.
Yep! I’ll put one up tonight ! It’s a really strange problem, but i’m in love with reakit nonetheless ! 👨🎨