Comments (3)
Related: vercel/pkg#1812
This error should not bring when executing from source code through npx @marp-team/[email protected]
(Local installation).
from marp-cli.
This is not only an error with the linux binary.
I have this with the linux binary under Archlinux (same error as silkeh) and also with the windows binary.
pkg/prelude/bootstrap.js:1872
throw error;
^
Error: File 'C:\**\marp-cli\node_modules\vm2\lib\setup-sandbox.js' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:657:19)
at readFileFromSnapshot (pkg/prelude/bootstrap.js:1046:29)
at Object.readFileSync (pkg/prelude/bootstrap.js:1094:18)
at Object.<anonymous> (C:\snapshot\marp-cli\node_modules\vm2\lib\vm.js:148:57)
at Module._compile (pkg/prelude/bootstrap.js:1926:22)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at Module.require (pkg/prelude/bootstrap.js:1851:31) {
errno: -4058,
code: 'ENOENT',
path: 'C:\\snapshot\\marp-cli\\node_modules\\vm2\\lib/setup-sandbox.js',
pkg: true
}
Node.js v18.5.0
from marp-cli.
Probably a packaged binary by pkg is not yet available dynamic import for ESM.
vercel/pkg#1291
We must adopt the traditional way require()
if Marp CLI is run via the standalone binary (Detectable with process.pkg
). In this case, the engine cannot be ESM.
from marp-cli.
Related Issues (20)
- The latest Docker image fails PDF rendering (`Protocol error (Page.printToPDF): printing failed`)
- Add support for `lang` directive HOT 3
- `Failed converting Markdown. (Protocol error (Target.setDiscoverTargets): Target closed.)` in AWS ECS HOT 14
- Generation of PDF failed with too much latex formulas HOT 2
- Marp crashes with NodeJS LTS 18.18.0 HOT 3
- The coloring of CLI output is not accessible HOT 1
- Transparent background does not work when outputting in png format HOT 2
- Unable to launch marp if a subdirectory or file is not readable HOT 1
- marp stuck a long time without any output HOT 6
- Greek characters in path HOT 3
- Marp and inotifywait HOT 2
- Keyboard shortcuts for moving quickly inside the presentation HOT 2
- Experiment: File conversions using Firefox through WebDriver BiDi
- Server Mode Auto-refresh Does Not Work in Docker HOT 3
- Different styling in HTML and PDF HOT 2
- Investigate about Node.js single executable applications
- Add HTML head meta icon customization HOT 1
- Cache issue with ?pdf HOT 3
- [Bespoke transitions] Compatibility with Safari
- marp.exe rendering and watch mode do not work in msys on Windows 10 (i.e. git-bash) HOT 1
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 marp-cli.