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
I am using this package in a ES Module context.
When I load my project in the browser I get the follow error:
Uncaught ReferenceError: __dirname is not defined
The message is pretty obvious. First __dirname doesn't exist in es module context. Second, I think it would be better to make your package es-module compliant. Removing require replacing with import statements and trying to remove the use of path library which is not loadable in browsers.
The text was updated successfully, but these errors were encountered:
I am using this package in a ES Module context.
When I load my project in the browser I get the follow error:
The message is pretty obvious. First __dirname doesn't exist in es module context. Second, I think it would be better to make your package es-module compliant. Removing
require
replacing withimport
statements and trying to remove the use ofpath
library which is not loadable in browsers.The text was updated successfully, but these errors were encountered: