-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In ES module "__filename" is not defined #81
Comments
I encountered the same problem, how ? nodejs 16.20.1 , i think this code can‘t run . // run the 'prepareStackTrace' function above |
In rollup.config.js add to output section the following line:
With the variable pointing to the bundled file. This solved the problem for me. |
I'm having this issue with my sveltekit/vite build, also because of the use of |
It seems I've fixed this by moving |
I bundle with
rollup
my application (that uses indirectly this module) as an ES module. The bundle fails at runtime because__filename
is not defined.Could the following alternative be added if
__filename
is not defined?Thanks!
mario
The text was updated successfully, but these errors were encountered: