You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using [email protected], when importing use-query-params/adapters/react-router-6 in a jest test running with ts-jest and TypeScript's moduleResolution set to node, we see the following error:
Cannot use import statement outside a module
I believe this is because the copy-adapters.js script in use-query-params/scripts does not copy the package.json of the respective adapter. I monkey-patched the node_modules the following way, and it did the trick: