Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR [12:01:28 PM GMT+0530 +0530]: Message - No such built-in module: ./resvgjs.win32-x64-msvc-Z3LFNTDC.node #290

Open
gaurav-spraxa opened this issue Jan 16, 2024 · 3 comments

Comments

@gaurav-spraxa
Copy link

I have created a bundle file and form esbuild - after that i create executable( a binary ) of node application.

after running the application getting the below error

ERROR [12:01:28 PM GMT+0530 +0530]: Message - No such built-in module: ./resvgjs.win32-x64-msvc-Z3LFNTDC.node
err: {

"type": "Error",
"message": "No such built-in module: ./resvgjs.win32-x64-msvc-Z3LFNTDC.node",
"stack":
Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: ./resvgjs.win32-x64-msvc-Z3LFNTDC.node
at new NodeError (node: internal/errors:405:5)
at embedder Require (node:internal/util/embedding:43:11)
at node_modules/@resvg/resvg-js/js-binding.js (d:\CATV5\CATExport\CatExport.exe:1355887:109)
at __require (d:\CATv5\CATExport\CatExport.exe:11:50)
at node_modules/@resvg/resvg-js/index.js (d:\CATV5\CATExport\CatExport.exe:1356011:73)
at _require (d:\CATv5\CATExport\CatExport.exe:11:50)
at viewer-server/base/ExportBase/ExcelExport.js (d: \CATV5\CATExport\CatExport.exe: 1356036:31)
at __init (d:\CATV5\CATExport\CatExport.exe:8:57)
at viewer-server/base/ExportBase/ExportBase.js (d:\CATV5\CATExport\CatExport.exe:1358806:5)
at _init (d:\CATv5\CATExport\CatExport.exe:8:57)
at viewer-server/base/BaseController.js (d: \CATV5\CATExport\CatExport.exe:1358880:5)
at __init (d: \CATV5\CATExport\CatExport.exe:8:57)
at viewer-server/routes/index.js (d:\CATV5\CATExport\CatExport.exe:1518454:5)
at __init (d: \CATV5\CATExport\CatExport.exe:8:57)
at viewer-server/start.js (d: \CATV5\CATExport\CatExport.exe:1521259:5)
at __init (d:\CATV5\CATExport\CatExport.exe:8:57)
"code": "ERR_UNKNOWN_BUILTIN_MODULE"
}

@yisibl
Copy link
Member

yisibl commented Jan 17, 2024

Can you submit a GitHub repository to reproduce this issue?

@gaurav-spraxa
Copy link
Author

gaurav-spraxa commented Jan 17, 2024

Hey, thanks for your response.

Actually, i'm running the single executable file of my node application.

for this i bundle the application from esbuild

Run command - build": "esbuild app.js --bundle --platform=node --outfile=app-out.cjs --target=node20.3.1 --format=cjs --loader:.node=file",

After that I create single executable file of my node application - Ref: https://nodejs.org/api/single-executable-applications.html

when i'm running it i'm getting this error - Note: i'm using window for running this

If still required then i'll send you git repo to check this issue.

@yisibl
Copy link
Member

yisibl commented Jan 24, 2024

Yeah, I need a GitHub repository.

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

No branches or pull requests

2 participants