Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Cannot require 'path' in napa.js @0.1.1 #55

Open
fs-eire opened this issue Aug 24, 2017 · 2 comments
Open

Cannot require 'path' in napa.js @0.1.1 #55

fs-eire opened this issue Aug 24, 2017 · 2 comments
Labels

Comments

@fs-eire
Copy link
Contributor

fs-eire commented Aug 24, 2017

Change e0696c5 introduced this bug.

When zone.execute('path', ...) , the first arg will be rewrited to join with the current folder, thus cause it not recognized as built-in module.

@fs-eire fs-eire added the bug label Aug 24, 2017
@daiyip daiyip added the P2 label Nov 2, 2017
@rodrigogs
Copy link

I cant import any built-in modules to my workers.

@helloshuangzi
Copy link
Contributor

Thanks for your feedback, @rodrigogs. Most node built-in modules are not supported by napa workers for now, especially those I/O bound ones, because napa.js is designed for computation heavy tasks.
While we are working on napa.js 0.3.0 Node.js API compatibility for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants