Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Unable to compile app with -r esm #954
Comments
|
Hey @acidos, I'm getting the same error when running |
|
@hasparus no, I gave up... |
|
I had the same issue and it was only happening when I ran it from the terminal in VSCode. In a separate terminal it worked. (Changing the shell in VSCode didn't help either). |
|
It seems NODE_OPTIONS is read by the In my case, that NODE_OPTIPONS was in my particular environment defined by VSCode because I was debugging on that moment. I don't know the reason because I saw some errors related to that: Another example of this, on this issue in graphql-engine, solved removing the environment variable. I don't know if vercel/pkg/@igorklopov want to remove this feature, because it could be useful. However, I will make a PR to include it on the documentation. |
SnakeDrak
mentioned this issue

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

I am using
esmmodule for running my app. This is how I ran it.Now when I try to compile my app using pkg with the following line
I am getting the following errors for every file