ncc icon indicating copy to clipboard operation
ncc copied to clipboard

Path separator should be escaped on Windows

Open alpaix opened this issue 7 years ago • 4 comments

ncc generates require path with platform specific path separators

module.exports = require("./build\Release\zmq.node")

If not correctly escaped, this statement causes a runtime error

Error: Cannot find module './buildReleasezmq.node'

For repro nteract/kernel-relay

alpaix avatar Feb 05 '19 21:02 alpaix

Thanks, I've included the fix for this in https://github.com/zeit/ncc/pull/264.

guybedford avatar Feb 05 '19 23:02 guybedford

cc @rgbkrk

alpaix avatar Feb 05 '19 23:02 alpaix

This should be resolved now, please let me know if it comes up again at all.

guybedford avatar Feb 25 '19 15:02 guybedford

Thank you!

rgbkrk avatar Feb 25 '19 17:02 rgbkrk