Comments (4)
That appears to be the solution, if anyone at Heroku would like to fix this...
from heroku-nodejs-plugin.
@jraoult I can't promise any timeline for a fix but this is on my radar now. I have a small fix that looks promising for your tsx
issue but I'm not that familiar with the addon code so I'd like to get a deeper understanding of how everything works before committing to it.
from heroku-nodejs-plugin.
We've been trying to migrate our Heroku-hosted app from ts-node
to tsx
for a year (and gave up multiple times) because of that one. We have not been lucky because somehow the error message wasn't showing up (which would have helped the diagnostic), but we realised that turning Enhanced metrics off was doing the trick. A couple of GitHub searches later, and here I'm 😬.
In our case, it is not just in a worker but from the main program, so we can not run at all. As said earlier, the workaround is easy to apply, but we are missing important metrics.
Here's what we see after running node --import tsx/esm src/index.ts
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
Error: Module did not self-register: '/app/.heroku/heroku-nodejs-plugin/heroku-nodejs-plugin.node'.
at Module._extensions..node (node:internal/modules/cjs/loader:1327:18)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at Array.__webpack_modules__ (/app/.heroku/heroku-nodejs-plugin/index.js:1079:19)
at __webpack_require__ (/app/.heroku/heroku-nodejs-plugin/index.js:1106:41)
at Array.<anonymous> (/app/.heroku/heroku-nodejs-plugin/index.js:19:21)
at __webpack_require__ (/app/.heroku/heroku-nodejs-plugin/index.js:1106:41)
at /app/.heroku/heroku-nodejs-plugin/index.js:1127:17 {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v20.9.0
from heroku-nodejs-plugin.
@colincasey, pardon the ping but it seems like you might be the most recent maintainer of this repo. Can we expect a fix for this?
from heroku-nodejs-plugin.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-nodejs-plugin.