Skip to content

Update engine to Node 14.x#49

Open
maxfontani wants to merge 2 commits into
mars:masterfrom
maxfontani:master
Open

Update engine to Node 14.x#49
maxfontani wants to merge 2 commits into
mars:masterfrom
maxfontani:master

Conversation

@maxfontani
Copy link
Copy Markdown

  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