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
I'm currently having a trouble building a serverless node server(AWS Lambda).
The errors are like this below.
`yarn run v1.22.22
$ nest build --webpack
ERROR in ./node_modules/farmhash/build/Release/farmhash.node 1:0
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
@ ./node_modules/farmhash/index.js 5:11-51
@ ./node_modules/firebase-admin/lib/remote-config/condition-evaluator-internal.js 21:17-36
@ ./node_modules/firebase-admin/lib/remote-config/remote-config.js 22:39-80
@ ./node_modules/firebase-admin/lib/app/firebase-namespace.js 219:29-83
@ ./node_modules/firebase-admin/lib/default-namespace.js 19:29-64
@ ./node_modules/firebase-admin/lib/index.js 19:17-47
@ ./src/sms/sms.service.ts 33:12-37
@ ./src/sms/sms.module.ts 40:22-46
@ ./src/app.module.ts 19:21-48
@ ./src/lambda.ts 34:21-44
ERROR in ./node_modules/farmhash/index.js 7:11-49
Module not found: Error: Can't resolve './build/Debug/farmhash.node' in '/home/runner/work/backend_v1/backend_v1/node_modules/farmhash'
resolve './build/Debug/farmhash.node' in '/home/runner/work/backend_v1/backend_v1/node_modules/farmhash'
using description file: /home/runner/work/backend_v1/backend_v1/node_modules/farmhash/package.json (relative path: .)
using description file: /home/runner/work/backend_v1/backend_v1/node_modules/farmhash/package.json (relative path: ./build/Debug/farmhash.node)
no extension
/home/runner/work/backend_v1/backend_v1/node_modules/farmhash/build/Debug/farmhash.node doesn't exist
.tsx
/home/runner/work/backend_v1/backend_v1/node_modules/farmhash/build/Debug/farmhash.node.tsx doesn't exist
.ts
/home/runner/work/backend_v1/backend_v1/node_modules/farmhash/build/Debug/farmhash.node.ts doesn't exist
.js
/home/runner/work/backend_v1/backend_v1/node_modules/farmhash/build/Debug/farmhash.node.js doesn't exist
as directory
/home/runner/work/backend_v1/backend_v1/node_modules/farmhash/build/Debug/farmhash.node doesn't exist
@ ./node_modules/firebase-admin/lib/remote-config/condition-evaluator-internal.js 21:17-36
@ ./node_modules/firebase-admin/lib/remote-config/remote-config.js 22:39-80
@ ./node_modules/firebase-admin/lib/app/firebase-namespace.js 219:29-83
@ ./node_modules/firebase-admin/lib/default-namespace.js 19:29-64
@ ./node_modules/firebase-admin/lib/index.js 19:17-47
@ ./src/sms/sms.service.ts 33:12-37
@ ./src/sms/sms.module.ts 40:22-46
@ ./src/app.module.ts 19:21-48
@ ./src/lambda.ts 34:21-44
webpack 5.90.1 compiled with 2 errors in 68925 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
##[debug]Finishing: Run yarn build:serverless`
The errors started since I added "firebase-admin" package into the system.
But the firebase-admin doesn't use this 'farmhash' package directly.
It should be one of the firebase-admin's 3rd party packages.
I guess Lambda can't handle this type of expression. (using . relative path) return require('./build/Release/farmhash.node'); } catch (e) { return require('./build/Debug/farmhash.node');
Do you know how to solve this issue?
I can't move on and update the system because of this.
Please help me out if you have time.
Thank you.
The text was updated successfully, but these errors were encountered:
Hi, I'm aiden.
I'm currently having a trouble building a serverless node server(AWS Lambda).
The errors are like this below.
`yarn run v1.22.22
$ nest build --webpack
ERROR in ./node_modules/farmhash/build/Release/farmhash.node 1:0
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
@ ./node_modules/farmhash/index.js 5:11-51
@ ./node_modules/firebase-admin/lib/remote-config/condition-evaluator-internal.js 21:17-36
@ ./node_modules/firebase-admin/lib/remote-config/remote-config.js 22:39-80
@ ./node_modules/firebase-admin/lib/app/firebase-namespace.js 219:29-83
@ ./node_modules/firebase-admin/lib/default-namespace.js 19:29-64
@ ./node_modules/firebase-admin/lib/index.js 19:17-47
@ ./src/sms/sms.service.ts 33:12-37
@ ./src/sms/sms.module.ts 40:22-46
@ ./src/app.module.ts 19:21-48
@ ./src/lambda.ts 34:21-44
ERROR in ./node_modules/farmhash/index.js 7:11-49
Module not found: Error: Can't resolve './build/Debug/farmhash.node' in '/home/runner/work/backend_v1/backend_v1/node_modules/farmhash'
resolve './build/Debug/farmhash.node' in '/home/runner/work/backend_v1/backend_v1/node_modules/farmhash'
using description file: /home/runner/work/backend_v1/backend_v1/node_modules/farmhash/package.json (relative path: .)
using description file: /home/runner/work/backend_v1/backend_v1/node_modules/farmhash/package.json (relative path: ./build/Debug/farmhash.node)
no extension
/home/runner/work/backend_v1/backend_v1/node_modules/farmhash/build/Debug/farmhash.node doesn't exist
.tsx
/home/runner/work/backend_v1/backend_v1/node_modules/farmhash/build/Debug/farmhash.node.tsx doesn't exist
.ts
/home/runner/work/backend_v1/backend_v1/node_modules/farmhash/build/Debug/farmhash.node.ts doesn't exist
.js
/home/runner/work/backend_v1/backend_v1/node_modules/farmhash/build/Debug/farmhash.node.js doesn't exist
as directory
/home/runner/work/backend_v1/backend_v1/node_modules/farmhash/build/Debug/farmhash.node doesn't exist
@ ./node_modules/firebase-admin/lib/remote-config/condition-evaluator-internal.js 21:17-36
@ ./node_modules/firebase-admin/lib/remote-config/remote-config.js 22:39-80
@ ./node_modules/firebase-admin/lib/app/firebase-namespace.js 219:29-83
@ ./node_modules/firebase-admin/lib/default-namespace.js 19:29-64
@ ./node_modules/firebase-admin/lib/index.js 19:17-47
@ ./src/sms/sms.service.ts 33:12-37
@ ./src/sms/sms.module.ts 40:22-46
@ ./src/app.module.ts 19:21-48
@ ./src/lambda.ts 34:21-44
webpack 5.90.1 compiled with 2 errors in 68925 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
##[debug]Finishing: Run yarn build:serverless`
The errors started since I added "firebase-admin" package into the system.
But the firebase-admin doesn't use this 'farmhash' package directly.
It should be one of the firebase-admin's 3rd party packages.
I guess Lambda can't handle this type of expression. (using . relative path)
return require('./build/Release/farmhash.node'); } catch (e) { return require('./build/Debug/farmhash.node');
Do you know how to solve this issue?
I can't move on and update the system because of this.
Please help me out if you have time.
Thank you.
The text was updated successfully, but these errors were encountered: