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
Description:
I have been experiencing difficulties while trying to import the naevner function from your TypeScript module. I believe there might be an issue with the way the function is exported.
Steps to Reproduce:
Import the naevner function into another TypeScript/JavaScript file using import naevner from "@samhaeng/naevner.;
The function works as expected in the dev env
Build the app with Vite
Open the build preview
Observe the error in the console:
TypeError: naevner is not a function
Expected Behavior:
The naevner function should be successfully imported and usable in the build without throwing any errors.
Actual Behavior:
Currently, an error is thrown.
Workaround:
The current workaround I am using is to add the .default to the export as follows:
Description:
I have been experiencing difficulties while trying to import the
naevner
function from your TypeScript module. I believe there might be an issue with the way the function is exported.Steps to Reproduce:
naevner
function into another TypeScript/JavaScript file usingimport naevner from "@samhaeng/naevner
.;TypeError: naevner is not a function
Expected Behavior:
The
naevner
function should be successfully imported and usable in the build without throwing any errors.Actual Behavior:
Currently, an error is thrown.
Workaround:
The current workaround I am using is to add the
.default
to the export as follows:Additional Information:
Thanks for creating such a neat little tool!
The text was updated successfully, but these errors were encountered: