Closed grncdr closed 2 years ago
@grncdr Give me a few days for this. I know where the issue comes from (typescript most likely doesnt read export maps)
its gonna take some refactoring but I'll get this fixed.
I believe this is fixed in 0.8.3, feel free to reopen if it isnt.
Expected Behaviour
TypeScript can find
mrujs/plugins
Actual Behaviour
if I write
import {MrujsTurbo} from 'mrujs/plugins'
TypeScript shows the errorCannot find module 'mrujs/plugins' or its corresponding type declarations.
.Webpack seems to find the module just fine.
Steps to Reproduce
Create a project that uses TypeScript and mrujs. Try and import from 'mrujs/plugins'
Repo (if possible)
https://github.com/grncdr/mrujs-repro
The above repo is using the same version of TypeScript and tsconfig settings as my actual project, but I've been unable to make the import work by upgrading or changing any of the settings there.