-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fail to build channel-rocketchat module on Windows #5
Comments
Sorry i can't help you. Take into the account that the package script doesn't work on UNIX OS (Linux / MacOSX). I tried to solve the issue with the Botpress developer team but we figured out that the whole built process works only on Windows environment. Regards |
Thanks for your promt response. I just built the channel-rocketchat module on Windows enviroment but the error occurred: [module-builder] [ERROR] in C:/Botpress/botpress/modules/channel-rocketchat/src/backend/client.ts (103,21) I used nodejs v12.18.0 and yarn 1.22.5. Please help me fix the problem. Here's the full logs: C:\Botpress\botpress>yarn C:\Botpress\botpress>yarn build WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. WARNING in webpack performance recommendations: [20:09:57] Finished 'buildModuleBuilder' after 58 s =======================================
|
Here's console logs:
=======================================
Error building module C:\Users\camel\Desktop\botpress\modules\channel-rocketchat
Status: error Command failed with exit code 1.
Output: info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
success Saved lockfile.
$ node ../../build/module-builder/bin/entry build --fail-on-error
[module-builder] [ERROR] in C:/Users/camel/Desktop/botpress/modules/channel-rocketchat/src/backend/client.ts (103,21)
TS2345: Argument of type '{ id: any; botId: string; channel: string; direction: "incoming"; payload: { text: any; user_info: { created: boolean; result: sdk.User; }; }; type: string; preview: any; target: any; }' is not assignable to parameter of type 'EventCtorArgs'.
Object literal may only specify known properties, and 'id' does not exist in type 'EventCtorArgs'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[11:43:03] 'build-module channel-rocketchat' errored after 30 s
[11:43:03] Error: Command failed: cross-env npm_config_target_platform=darwin yarn && yarn build --fail-on-error
error Command failed with exit code 1.
[11:43:03] 'build' errored after 19 min
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
C:\Users\camel\Desktop\botpress>yarn -v
1.22.5
Please help!
The text was updated successfully, but these errors were encountered: