kelsonpw / react-chrome-extension-router

A dead simple routing solution for browser extensions written in typescript with React Hooks. Context free.
MIT License
51 stars 7 forks source link

Vite unable to resolve the package - incorrect main/module/exports #27

Open umarluqman opened 2 years ago

umarluqman commented 2 years ago

Describe the bug Vite is unable to resolve the package.

Steps to reproduce the behaviour:

Install @react-schrome-extension-router and vite Import it anywhere Run vite Sample error: Failed to resolve entry for package "react-chrome-extension-router". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "react-chrome-extension-router". The package may have incorrect main/module/exports specified in its package.json.

Expected behaviour: Vite should serve the site

Additional info: MacOS Monterey Chrome react-chrome-extension-router v1.3.1

kelsonpw commented 2 years ago

Fixed

kelsonpw commented 2 years ago

This has been fixed and published in v1.4.0 https://www.npmjs.com/package/react-chrome-extension-router/v/1.4.0

Thanks for your contribution @umarluqman ! 🙏🏻