Closed newthings4learning closed 5 years ago
If you launch again the build command, do you get the same error? If so, try deleting the node_modules inside src/bp/ui-admin. If it persists, try cleaning your yarn cache. These are random errors that pops up sometimes with npm/yarn packages
@newthings4learning there was effectively an issue for someone pulling for the first time. It should be fixed in master now
@newthings4learning there was effectively an issue for someone pulling for the first time. It should be fixed in master now
Hey @allardy , i again cloned the git repo today and the 'yarn build' fails again with the below error:
c:\Botpress\botpress>yarn build
yarn run v1.12.3
$ yarn cmd build
$ yarn run gulp build
$ c:\Botpress\botpress\node_modules\.bin\gulp build
[01:49:32] Using gulpfile c:\Botpress\botpress\gulpfile.js
[01:49:32] Starting 'build'...
[01:49:32] Starting 'maybeFetchPro'...
[01:49:32] Finished 'maybeFetchPro' after 11 ms
[01:49:32] Starting 'writeMetadata'...
[01:49:32] Finished 'writeMetadata' after 11 ms
[01:49:32] Starting 'compileTypescript'...
src\bp\index.ts(29,36): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[string, (string | undefined)?, (Function | undefined)?]'.
Type 'IArguments' is missing the following properties from type '[string, (string | undefined)?, (Function | undefined)?]': 0, pop, push, concat, and 25 more.
src\bp\sdk\rewire.ts(51,38): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[string]'.
Type 'IArguments' is missing the following properties from type '[string]': 0, pop, push, concat, and 25 more.
TypeScript: 2 semantic errors
TypeScript: emit succeeded (with errors)
[01:49:37] 'compileTypescript' errored after 5.14 s
[01:49:37] Error: TypeScript: Compilation failed
at Output.mightFinish (c:\Botpress\botpress\node_modules\gulp-typescript\release\output.js:130:43)
at applySourceMap.then.appliedSourceMap (c:\Botpress\botpress\node_modules\gulp-typescript\release\output.js:65:22)
[01:49:37] 'build' errored after 5.17 s
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.
I also tried to work with the Release v11.0.1. And I am still facing issues when building. Below you can see the output in the console that shows all that I tried to progress and it still failed with the same error when I ran 'yarn build' in the end.
c:\Botpress\botpress>yarn
yarn install v1.12.3
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error https://registry.yarnpkg.com/flatmap-stream/-/flatmap-stream-0.1.1.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
c:\Botpress\botpress>yarn cache clean
yarn cache v1.12.3
success Cleared cache.
Done in 5.16s.
c:\Botpress\botpress>yarn
yarn install v1.12.3
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error https://registry.yarnpkg.com/flatmap-stream/-/flatmap-stream-0.1.1.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
c:\Botpress\botpress>rename yarn.lock 1yarn.lck.1
c:\Botpress\botpress>dir
Volume in drive C is Windows
Volume Serial Number is 2265-B4D2
Directory of c:\Botpress\botpress
11/30/2018 03:21 AM <DIR> .
11/30/2018 03:21 AM <DIR> ..
11/30/2018 03:19 AM 154 .editorconfig
11/30/2018 03:19 AM <DIR> .github
11/30/2018 03:19 AM 574 .gitignore
11/30/2018 03:19 AM 120 .gitmodules
11/30/2018 03:19 AM 56 .huskyrc
11/30/2018 03:19 AM 151 .prettierrc
11/30/2018 03:19 AM <DIR> .vscode
11/30/2018 03:19 AM 335,467 1yarn.lck.1
11/30/2018 03:19 AM <DIR> build
11/30/2018 03:19 AM 331 buildspec-test.yml
11/30/2018 03:19 AM 4,115 buildspec.yml
11/30/2018 03:19 AM 85,677 CHANGELOG.md
11/30/2018 03:19 AM 159 commitlint.config.js
11/30/2018 03:19 AM 1,573 docker-readme.md
11/30/2018 03:19 AM 230 Dockerfile
11/30/2018 03:19 AM <DIR> docs
11/30/2018 03:19 AM 1,631 gulpfile.js
11/30/2018 03:19 AM 2,952 icon.png
11/30/2018 03:19 AM 666 jest.config.js
11/30/2018 03:19 AM <DIR> licenses
11/30/2018 03:19 AM <DIR> modules
11/30/2018 03:19 AM 4,675 package.json
11/30/2018 03:19 AM 47,353 pkg-v4.3.4.tgz
11/30/2018 03:19 AM 6,113 README.md
11/30/2018 03:19 AM <DIR> src
11/30/2018 03:19 AM 1,510 tslint.json
19 File(s) 493,507 bytes
9 Dir(s) 34,344,808,448 bytes free
c:\Botpress\botpress>yarn cache clean
yarn cache v1.12.3
success Cleared cache.
Done in 4.32s.
c:\Botpress\botpress>yarn
yarn install v1.12.3
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning inversify@4.14.0: Re-Released as 5.0.1
warning joi > hoek@5.0.4: This version is no longer maintained. Please upgrade to the latest version.
warning socketio-jwt > xtend > object-keys@0.4.0:
warning gulp-run > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
warning jest > jest-cli > prompts > kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
warning pkg > pkg-fetch > request > hawk > boom@4.3.1: This version is no longer maintained. Please upgrade to the latest version.
[3/5] Fetching packages...
info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > bluebird-global@1.0.1" has unmet peer dependency "bluebird@*".
warning " > babel-jest@23.6.0" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 115.75s.
c:\Botpress\botpress>yarn build
yarn run v1.12.3
$ yarn build:core && yarn build:modules && yarn build:studio && yarn build:admin
$ ./node_modules/.bin/gulp clean-build
[03:24:17] Using gulpfile c:\Botpress\botpress\gulpfile.js
[03:24:17] Starting 'clean-build'...
[03:24:17] Starting 'clean'...
[03:24:17] Finished 'clean' after 16 ms
[03:24:17] Starting 'fetchPro'...
[03:24:17] Finished 'fetchPro' after 4.9 ms
[03:24:17] Starting 'writeEdition'...
[03:24:17] Finished 'writeEdition' after 14 ms
[03:24:17] Starting 'buildTs'...
src\bp\index.ts(29,36): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[string, (string | undefined)?, (Function | undefined)?]'.
Type 'IArguments' is missing the following properties from type '[string, (string | undefined)?, (Function | undefined)?]': 0, pop, push, concat, and 25 more.
src\bp\sdk\rewire.ts(51,38): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[string]'.
Type 'IArguments' is missing the following properties from type '[string]': 0, pop, push, concat, and 25 more.
TypeScript: 2 semantic errors
TypeScript: emit succeeded (with errors)
[03:24:22] 'buildTs' errored after 4.81 s
[03:24:22] Error: TypeScript: Compilation failed
at Output.mightFinish (c:\Botpress\botpress\node_modules\gulp-typescript\release\output.js:130:43)
at applySourceMap.then.appliedSourceMap (c:\Botpress\botpress\node_modules\gulp-typescript\release\output.js:65:22)
[03:24:22] 'clean-build' errored after 4.85 s
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.
I am having the same issue when building from source:
yarn -version
1.10.1
[12:11:00] Using gulpfile ~/Documents/development/botpress/gulpfile.js
[12:11:00] Starting 'build'...
[12:11:00] Starting 'maybeFetchPro'...
[12:11:00] Finished 'maybeFetchPro' after 13 ms
[12:11:00] Starting 'writeMetadata'...
[12:11:00] Finished 'writeMetadata' after 7.32 ms
[12:11:00] Starting 'compileTypescript'...
src/bp/index.ts(29,36): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[string, (string | undefined)?, (Function | undefined)?]'.
Type 'IArguments' is missing the following properties from type '[string, (string | undefined)?, (Function | undefined)?]': 0, pop, push, concat, and 25 more.
src/bp/sdk/rewire.ts(51,38): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[string]'.
Type 'IArguments' is missing the following properties from type '[string]': 0, pop, push, concat, and 25 more.
TypeScript: 2 semantic errors
TypeScript: emit succeeded (with errors)
I had cloned the naster repo few days ago maybe 20 days back or so and it was working fine. This issue started coming lately and seems to be persisting so far.
anyone able to build from source ? I am still facing the same issue.
Hi @newthings4learning, I just pulled the project from master branch of bp repo. Ran the commands according to the guide:
Then the project successfully started.
I will update the Readme, but Node 10.11
is required
I will update the Readme, but
Node 10.11
is required
hi @slvnperron i have v10.13.0 on my laptop
I still continue to have the same error :(
C:\Botpress\botpress>rename yarn.lock yarn.lock.1
C:\Botpress\botpress>yarn cache clean
yarn cache v1.12.3
success Cleared cache.
Done in 0.07s.
C:\Botpress\botpress>yarn
yarn install v1.12.3
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning inversify@4.14.0: Re-Released as 5.0.1
warning joi > hoek@5.0.4: This version is no longer maintained. Please upgrade to the latest version.
warning socketio-jwt > xtend > object-keys@0.4.0:
warning gulp-run > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
warning jest > jest-cli > prompts > kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
warning pkg > pkg-fetch > request > hawk > boom@4.3.1: This version is no longer maintained. Please upgrade to the latest version.
[3/5] Fetching packages...
info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > bluebird-global@1.0.1" has unmet peer dependency "bluebird@*".
warning " > babel-jest@23.6.0" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 178.43s.
C:\Botpress\botpress>yarn build
yarn run v1.12.3
$ yarn cmd build
$ yarn run gulp build
$ C:\Botpress\botpress\node_modules\.bin\gulp build
[01:13:06] Using gulpfile C:\Botpress\botpress\gulpfile.js
[01:13:06] Starting 'build'...
[01:13:06] Starting 'maybeFetchPro'...
[01:13:06] Finished 'maybeFetchPro' after 14 ms
[01:13:06] Starting 'writeMetadata'...
[01:13:06] Finished 'writeMetadata' after 14 ms
[01:13:06] Starting 'compileTypescript'...
src\bp\index.ts(29,36): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[string, (string | undefined)?, (Function | undefined)?]'.
Type 'IArguments' is missing the following properties from type '[string, (string | undefined)?, (Function | undefined)?]': 0, pop, push, concat, and 25 more.
src\bp\sdk\rewire.ts(51,38): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[string]'.
Type 'IArguments' is missing the following properties from type '[string]': 0, pop, push, concat, and 25 more.
TypeScript: 2 semantic errors
TypeScript: emit succeeded (with errors)
[01:13:12] 'compileTypescript' errored after 5.68 s
[01:13:12] Error: TypeScript: Compilation failed
at Output.mightFinish (C:\Botpress\botpress\node_modules\gulp-typescript\release\output.js:130:43)
at applySourceMap.then.appliedSourceMap (C:\Botpress\botpress\node_modules\gulp-typescript\release\output.js:65:22)
[01:13:12] 'build' errored after 5.73 s
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.
Hey @newthings4learning, we just released 11.2 which should fixed your installation issues. I went ahead and completed a successful build from scratch using the following steps on node 10.11.
> git clone git@github.com:botpress/botpress.git && cd ./botpress/
> yarn clean cache
> yarn
> yarn build
> yarn start
let me know if it worked out for you
Hey @newthings4learning, we just released 11.2 which should fixed your installation issues. I went ahead and completed a successful build from scratch using the following steps on node 10.11.
> git clone git@github.com:botpress/botpress.git && cd ./botpress/ > yarn clean cache > yarn > yarn build > yarn start
let me know if it worked out for you
hey @EFF - thanks for coming back on this one. i have node v11.0.4 now on my laptop. I am now able to successfully run yarn cache clean, yarn yarn build. But now when I try to run the server by yarn start it fails as you can see below. could this be because node version ?
c:\SelfLearning\Botpress\botpress>yarn
yarn install v1.12.3
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > bluebird-global@1.0.1" has unmet peer dependency "bluebird@*".
warning " > babel-jest@23.6.0" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
[5/5] Building fresh packages...
Done in 234.52s.
c:\SelfLearning\Botpress\botpress>yarn build
yarn run v1.12.3
$ yarn cmd build
$ yarn run gulp build
$ c:\SelfLearning\Botpress\botpress\node_modules\.bin\gulp build
[19:10:44] Using gulpfile c:\SelfLearning\Botpress\botpress\gulpfile.js
[19:10:44] Starting 'build'...
[19:10:44] Starting 'maybeFetchPro'...
[19:10:44] Finished 'maybeFetchPro' after 16 ms
[19:10:44] Starting 'writeMetadata'...
[19:10:44] Finished 'writeMetadata' after 17 ms
[19:10:44] Starting 'compileTypescript'...
[19:10:57] Finished 'compileTypescript' after 12 s
[19:10:57] Starting 'buildSchemas'...
[19:11:01] Finished 'buildSchemas' after 3.85 s
[19:11:01] Starting 'createOutputDirs'...
[19:11:01] Finished 'createOutputDirs' after 28 ms
[19:11:01] Starting 'buildModuleBuilder'...
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ ./node_modules/.bin/babel src --out-dir bin --extensions ".ts,.js"
Successfully compiled 6 files with Babel.
[19:15:01] Finished 'buildModuleBuilder' after 4 min
[19:15:01] Starting 'copySdkDefinitions'...
[19:15:03] modules\analytics\src\botpress.d.ts
[19:15:03] modules\basic-skills\src\botpress.d.ts
[19:15:03] modules\builtin\src\botpress.d.ts
[19:15:03] modules\channel-web\src\botpress.d.ts
[19:15:03] modules\nlu\src\botpress.d.ts
[19:15:03] modules\qna\src\botpress.d.ts
[19:15:03] Finished 'copySdkDefinitions' after 1.91 s
[19:15:03] Starting 'build-module analytics'...
[19:23:44] Finished 'build-module analytics' after 8.68 min
[19:23:44] Starting 'build-module basic-skills'...
[19:31:56] Finished 'build-module basic-skills' after 8.18 min
[19:31:56] Starting 'build-module builtin'...
[19:37:42] Finished 'build-module builtin' after 5.77 min
[19:37:42] Starting 'build-module channel-web'...
[19:46:29] Finished 'build-module channel-web' after 8.77 min
[19:46:29] Starting 'build-module nlu'...
[20:00:19] Finished 'build-module nlu' after 14 min
[20:00:19] Starting 'build-module qna'...
[20:09:28] Finished 'build-module qna' after 9.15 min
[20:09:28] Starting 'build:studio'...
[20:09:28] Starting 'buildStudio'...
[20:17:24] Finished 'buildStudio' after 7.92 min
[20:17:24] Starting 'cleanStudio'...
[20:17:24] Finished 'cleanStudio' after 27 ms
[20:17:24] Starting 'cleanStudioAssets'...
[20:17:24] Finished 'cleanStudioAssets' after 13 ms
[20:17:24] Starting 'copyStudio'...
[20:17:25] Finished 'copyStudio' after 1.08 s
[20:17:25] Finished 'build:studio' after 7.95 min
[20:17:25] Starting 'build:admin'...
[20:17:25] Starting 'buildAdmin'...
[20:30:19] Finished 'buildAdmin' after 13 min
[20:30:19] Starting 'copyAdmin'...
[20:30:19] Finished 'copyAdmin' after 592 ms
[20:30:19] Finished 'build:admin' after 13 min
[20:30:19] Finished 'build' after 1.33 h
Done in 4790.96s.
c:\SelfLearning\Botpress\botpress>yarn start
yarn run v1.12.3
$ cd ./out/bp && cross-env NODE_PATH=./ cross-env BP_MODULES_PATH=../../modules node index.js
20:31:33.199 Launcher ========================================
Botpress Server - Community Edition
Version 11.2.0
========================================
20:31:37.307 Launcher Using 5 modules
⦿ MODULES_ROOT/analytics
⦿ MODULES_ROOT/basic-skills
⦿ MODULES_ROOT/builtin
⦿ MODULES_ROOT/channel-web
⊗ MODULES_ROOT/nlu (error)
⦿ MODULES_ROOT/qna
20:31:37.321 Launcher Error starting Botpress [VError, Fatal error loading module "MODULES_ROOT/nlu": The module '\\?\c:\SelfLearning\Botpress\botpress\modules\nlu\dist\backend\tools\bin\crfsuite_win.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 67. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).]
----- STACK -----
VError: Fatal error loading module "MODULES_ROOT/nlu": The module '\\?\c:\SelfLearning\Botpress\botpress\modules\nlu\dist\backend\tools\bin\crfsuite_win.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 67. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at c:\SelfLearning\Botpress\botpress\out\bp\bootstrap.js:78:36
at Generator.next (<anonymous>)
at fulfilled (c:\SelfLearning\Botpress\botpress\out\bp\bootstrap.js:4:58)
at tryCatcher (c:\SelfLearning\Botpress\botpress\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (c:\SelfLearning\Botpress\botpress\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (c:\SelfLearning\Botpress\botpress\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (c:\SelfLearning\Botpress\botpress\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (c:\SelfLearning\Botpress\botpress\node_modules\bluebird\js\release\promise.js:694:18)
at _drainQueueStep (c:\SelfLearning\Botpress\botpress\node_modules\bluebird\js\release\async.js:138:12)
at _drainQueue (c:\SelfLearning\Botpress\botpress\node_modules\bluebird\js\release\async.js:131:9)
at Async._drainQueues (c:\SelfLearning\Botpress\botpress\node_modules\bluebird\js\release\async.js:147:5)
at Immediate.Async.drainQueues (c:\SelfLearning\Botpress\botpress\node_modules\bluebird\js\release\async.js:17:14)
at processImmediate (timers.js:632:19)
at process.topLevelDomainCallback (domain.js:120:23)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
c:\SelfLearning\Botpress\botpress>
hey @EFF - i tried building botpress on another Windows machine which has Windows 10 Home. and i am still facing the same error as you can see below.
on this machine i have Node v10.13.0
PS C:\Botpress\botpress> yarn
yarn install v1.12.3
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning inversify@4.14.0: Re-Released as 5.0.1
warning joi > hoek@5.0.4: This version is no longer maintained. Please upgrade to the latest version.
warning socketio-jwt > xtend > object-keys@0.4.0:
warning gulp-run > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
warning jest > jest-cli > prompts > kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
warning pkg > pkg-fetch > request > hawk > boom@4.3.1: This version is no longer maintained. Please upgrade to the latest version.
[3/5] Fetching packages...
info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > bluebird-global@1.0.1" has unmet peer dependency "bluebird@*".
warning " > babel-jest@23.6.0" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 76.89s.
PS C:\Botpress\botpress> yarn build
yarn run v1.12.3
$ yarn cmd build
$ yarn run gulp build
$ C:\Botpress\botpress\node_modules\.bin\gulp build
[03:15:37] Using gulpfile C:\Botpress\botpress\gulpfile.js
[03:15:37] Starting 'build'...
[03:15:37] Starting 'maybeFetchPro'...
[03:15:37] Finished 'maybeFetchPro' after 12 ms
[03:15:37] Starting 'writeMetadata'...
[03:15:37] Finished 'writeMetadata' after 7.65 ms
[03:15:37] Starting 'compileTypescript'...
src\bp\index.ts(29,36): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[string, (string | undefined)?, (Function | undefined)?]'.
Type 'IArguments' is missing the following properties from type '[string, (string | undefined)?, (Function | undefined)?]': 0, pop, push, concat, and 25 more.
src\bp\sdk\rewire.ts(51,38): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[string]'.
Type 'IArguments' is missing the following properties from type '[string]': 0, pop, push, concat, and 25 more.
TypeScript: 2 semantic errors
TypeScript: emit succeeded (with errors)
[03:15:43] 'compileTypescript' errored after 5.15 s
[03:15:43] Error: TypeScript: Compilation failed
at Output.mightFinish (C:\Botpress\botpress\node_modules\gulp-typescript\release\output.js:130:43)
at applySourceMap.then.appliedSourceMap (C:\Botpress\botpress\node_modules\gulp-typescript\release\output.js:65:22)
[03:15:43] 'build' errored after 5.17 s
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.
PS C:\Botpress\botpress>
Closing this since as @newthings4learning mentioned at botpress/v12#548 an issue was fixed in 11.2 for him. @newthings4learning , or did I get you wrong?
Hi @epaminond ... The problem came again. See logs attached above. I am seeing 2 different kinds of errors as you can see in the respective logs for Node v11.0.4 and 10.13.0.
Added yarn-error.log file just in case
Added yarn-error.log file just in case
is this log file complete. i only see below at the end:
Error: Command "clean" not found. at new MessageError (C:\Program Files (x86)\Yarn\lib\cli.js:186:110) at C:\Program Files (x86)\Yarn\lib\cli.js:87307:17 at Generator.next (<anonymous>) at step (C:\Program Files (x86)\Yarn\lib\cli.js:98:30) at C:\Program Files (x86)\Yarn\lib\cli.js:116:14 at new Promise (<anonymous>) at new F (C:\Program Files (x86)\Yarn\lib\cli.js:23451:28) at C:\Program Files (x86)\Yarn\lib\cli.js:95:12 at runCommand (C:\Program Files (x86)\Yarn\lib\cli.js:87312:22) at Object.<anonymous> (C:\Program Files (x86)\Yarn\lib\cli.js:87412:14)
Hi @epaminond ... The problem came again. See logs attached above. I am seeing 2 different kinds of errors as you can see in the respective logs for Node v11.0.4 and 10.13.0.
Today I again tried the below steps and everything worked. This is a bit confusing as I am unable to understand the root cause. I didn't changed anything on my end.
System Configuration
OS: Windows 10 Home Node: 10.13.0 NPM: 6.4.1 Yarn: 1.12.3
Step 1 - git clone https://github.com/botpress/botpress.git Step 2 - yarn cache clean Step 3 - yarn Step 4 - yarn build Step 5 - yarn start
I am not very happy because I am not sure how the problem got resolved as I worry that it might come back again.
Was there any fix done for the problem ?
I'm having the same issue. I've tried reinstalling in multiple locations, but no luck.
My version of Node is 11.3.0, while the other two are the same as @newthings4learning
@newthings4learning @rpewing Botpress won't work on Node 11.x. We recommend using Node 10.x. for now. Also please try again with the latest version (v.11.3) to see if you experience the same issues.
@newthings4learning @rpewing Botpress won't work on Node 11.x. We recommend using Node 10.x. for now. Also please try again with the latest version (v.11.3) to see if you experience the same issues.
Hi @rndlaine - i realized that it is not working with 11.x as i was able to build with Node 10.13.0 the 11.2 botpress release. i will try the latest Master as well tonite. thanks!
closing this as it looks fixed. Feel free to reopen if you still experience this issue
If someone will come here from the googling and dumb enough to not read the docs before trying it out, it's still not working under the node v11.10.1, unfortunately.
The module 'botpress/build/native-extensions/darwin/crfsuite.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 67. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
Make sure these checkboxes are checked before raising an issue, thank you!
8.9
Please also fill in these fields:
Botpress version:
Latest
Channels: web
I cloned the git repo and trying to build from source/ but the build is failing in admin module with the below error: `[03:07:48] Starting 'buildAdmin'... error https://registry.yarnpkg.com/flatmap-stream/-/flatmap-stream-0.1.1.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"
[03:07:51] 'buildAdmin' errored after 2.32 s [03:07:51] Error: Command failed: yarn && yarn build error https://registry.yarnpkg.com/flatmap-stream/-/flatmap-stream-0.1.1.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"
[03:07:51] 'build:admin' errored after 2.32 s [03:07:51] 'build' errored after 1.13 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.`