Can't find export Loupe when using typescript
JimSpijker opened this issue · 1 comments
JimSpijker commented
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?
nishanths commented
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.