Project

Profile

Help

Bug #4957

closed

Cannot read property 'readFile' of undefined

Added by Martynas Jusevicius over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Command line
Sprint/Milestone:
-
Start date:
2021-03-31
Due date:
% Done:

0%

Estimated time:
Applies to JS Branch:
2
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Trying to compile a SEF file on Ubuntu 18.04 (Windows Subsystem for Linux 2):

pumba@LAPTOP-BL3MCU0O:/mnt/c/Users/pumba/WebRoot/AtomGraph/saxon-js2-test$ npx xslt3 -t -xsl:./client.xsl -export:./client.xsl.sef.json -nogo -ns:##html5
Saxon-JS 2.1 from Saxonica
Node.js version v8.10.0
Compiling stylesheet /mnt/c/Users/pumba/WebRoot/AtomGraph/saxon-js2-test/client.xsl
TypeError: Cannot read property 'readFile' of undefined
    at Object.resourcePromise (/mnt/c/Users/pumba/WebRoot/node_modules/saxon-js/SaxonJS2N.js:4468:478)
    at /mnt/c/Users/pumba/WebRoot/node_modules/xslt3/xslt3.js:48:311
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at Function.Module.runMain (module.js:695:11)
    at findNodeScript.then.existing (/usr/local/lib/node_modules/npx/node_modules/libnpx/index.js:268:14)
    at <anonymous>
TypeError: Cannot read property 'readFile' of undefined
    at Object.resourcePromise (/mnt/c/Users/pumba/WebRoot/node_modules/saxon-js/SaxonJS2N.js:4468:478)
    at /mnt/c/Users/pumba/WebRoot/node_modules/xslt3/xslt3.js:48:311
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
    at Function.Module.runMain (module.js:695:11)
    at findNodeScript.then.existing (/usr/local/lib/node_modules/npx/node_modules/libnpx/index.js:268:14)
    at <anonymous>
Failed to compile stylesheet: Cannot read property 'readFile' of undefined
Cannot read property 'readFile' of undefined

Please register to edit this issue

Also available in: Atom PDF Tracking page