KonnorRogers / mrujs

UJS for modern javascript.
https://mrujs.netlify.app
MIT License
164 stars 16 forks source link

Cannot find module 'mrujs/plugins' or its corresponding type declarations. #176

Closed grncdr closed 2 years ago

grncdr commented 2 years ago

Expected Behaviour

TypeScript can find mrujs/plugins

Actual Behaviour

if I write import {MrujsTurbo} from 'mrujs/plugins' TypeScript shows the error Cannot 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.

KonnorRogers commented 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.

KonnorRogers commented 2 years ago

I believe this is fixed in 0.8.3, feel free to reopen if it isnt.