Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with native node modules #168

Open
akaufmann opened this issue May 19, 2020 · 0 comments
Open

Build error with native node modules #168

akaufmann opened this issue May 19, 2020 · 0 comments

Comments

@akaufmann
Copy link

@marko/build 1.4.1

Details

If you are using a lib that uses native node modules, such as firebase-admin, @marko/build causes an error when you import such a lib into a .marko file.

Expected Behavior

The build runs fine.

Actual Behavior

You will get some error messages that some native node modules could not be found. For example, with firebase-admin:

 warning  in ./node_modules/hash-stream-validation/index.js

Module not found: Error: Can't resolve 'fast-crc32c' in '/<path/to/node_modules>/hash-stream-validation'

 warning  in ./node_modules/retry-request/index.js

Module not found: Error: Can't resolve 'request' in '/<path/to/node_modules>/retry-request'

/<path/to/node_modules>/build/index.js:187399
            throw err;
            ^

Error: ENOENT: no such file or directory, open '../../../protobufjs/google/protobuf/api.proto'

Your Environment

  • Operating System and version (desktop or mobile):

macOS Catalina
node.js v13.7.0
marko 4.21.9
firebase-admin 8.12.1

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

No branches or pull requests

1 participant