Skip to content

Conversation

@maxfontani
Copy link

  1. The CommonJS variables "__filename" and "__dirname" are not available in ES modules, which caused deployment issues on Heroku.
    Added workaround as suggested in https://nodejs.org/api/esm.html#esm_no_filename_or_dirname

  2. The engine update will run the latest Node version on deployment.

  3. Adding the module type will allow the use of "import" statements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant