nishanths/loupe-js

Can't find export Loupe when using typescript

JimSpijker opened this issue · 1 comments

Getting error:
The requested module '../../../node_modules/loupe-js/dist/index.js' does not provide an export named 'Loupe'

To reproduce:
Import and use loupe-js in a typescript project

Am I doing something wrong?

Thanks for the report. Could you share more about the structure of your TypeScript project, such as the tsconfig, webpack/esbuild config, and directory structure?

In the meantime, here's an example of a TypeScript project in which I've imported and used Loupe successfully. The "web" directory in the repository below contains the tsconfig file, etc.

https://github.com/nishanths/scrobble/blob/48633a3e190d8311550fe4f2263c9942a885bf96/web/components/songcard/util.tsx#L5