TypeError: (0, _.css) is not a function.
See original GitHub issueI am getting this error all of a sudden using dripsy 2.2.0 and even after updating to 2.3.6. The error occurs in the map-props.ts file in the core css dripsy folder.
The solution I’ve found is to change that line above to ./ instead of just .
I’ve looked up module resolution stuff and found that ./ points to the current location while . points to “this location”. I’m unsure what exactly the difference is besides maybe different behavior from javascript. I’m also confused as to why this happens only for this specific file where . is used in other files in the project. As well as the fact that this only recently happened with no changes to my codebase.
I figured I’d throw this up until I find if there’s something I’m missing with module resolution because I can’t really believe it would be the libraries fault.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
Interesting. Yeah I haven’t actually had Dripsy issues from this. Feel free to PR those imports though with
./indexTiming is probably coincidence though I’ve had this problem for over a week at least, I just haven’t looked too deeply into it until now.
But yeah seems like we have the same exact issue. I found some stack overflows about the
.vs./here: https://stackoverflow.com/questions/296873/how-to-set-relative-path-to-current-folder https://stackoverflow.com/questions/7591240/what-does-dot-slash-refer-to-in-terms-of-an-html-file-path-locationNot sure if they are related here but nice context and they mention that
./only works in non-strict mode which I’m unsure if that is affected by metro.