You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.jsModule 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
The text was updated successfully, but these errors were encountered:
@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
:Your Environment
macOS Catalina
node.js v13.7.0
marko 4.21.9
firebase-admin 8.12.1
The text was updated successfully, but these errors were encountered: