Project

Profile

Help

Bug #4957

closed

Cannot read property 'readFile' of undefined

Added by Martynas Jusevicius about 3 years ago. Updated about 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
Actions #1

Updated by Norm Tovey-Walsh about 3 years ago

Can you possibly provide the stylesheet that you're trying to compile, or a test stylesheet that causes the failure?

Actions #3

Updated by Martynas Jusevicius about 3 years ago

npm version 3.5.2, npx version 10.2.2.

Actions #4

Updated by Norm Tovey-Walsh about 3 years ago

  • Status changed from New to AwaitingInfo

It looks like you're running against Node 8.10. I think that version of Node is too old. Can you upgrade to 10.12.0 or later?

Actions #5

Updated by Martynas Jusevicius about 3 years ago

You're right. Upgraded to v14.16.1 and it compiles fine. Sorry.

Actions #6

Updated by Norm Tovey-Walsh about 3 years ago

  • Status changed from AwaitingInfo to Closed

That's great. Thanks for letting us know.

Please register to edit this issue

Also available in: Atom PDF Tracking page