Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ npm run build:server
> peertube@1.3.0 build:server /var/www/peertube/versions/peertube-v1.3.0
> scripty
> peertube@1.3.0 tsc /var/www/peertube/versions/peertube-v1.3.0
> tsc
scripts/create-import-video-file-job.ts:3:28 - error TS2307: Cannot find module '../server/models/video/video'.
3 import { VideoModel } from '../server/models/video/video'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/create-import-video-file-job.ts:4:36 - error TS2307: Cannot find module '../server/initializers'.
4 import { initDatabaseModels } from '../server/initializers'
~~~~~~~~~~~~~~~~~~~~~~~~
scripts/create-import-video-file-job.ts:5:26 - error TS2307: Cannot find module '../server/lib/job-queue'.
5 import { JobQueue } from '../server/lib/job-queue'
~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/create-transcoding-job.ts:2:28 - error TS2307: Cannot find module '../server/models/video/video'.
2 import { VideoModel } from '../server/models/video/video'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/create-transcoding-job.ts:3:36 - error TS2307: Cannot find module '../server/initializers'.
3 import { initDatabaseModels } from '../server/initializers'
~~~~~~~~~~~~~~~~~~~~~~~~
scripts/create-transcoding-job.ts:4:26 - error TS2307: Cannot find module '../server/lib/job-queue'.
4 import { JobQueue } from '../server/lib/job-queue'
~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/danger/clean/cleaner.ts:3:57 - error TS2307: Cannot find module '../../../server/initializers'.
3 import { initDatabaseModels, sequelizeTypescript } from '../../../server/initializers'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/danger/clean/cleaner.ts:4:24 - error TS2307: Cannot find module '../../../server/initializers/config'.
4 import { CONFIG } from '../../../server/initializers/config'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/generate-code-contributors.ts:1:27 - error TS2307: Cannot find module '../server/helpers/requests'.
1 import { doRequest } from '../server/helpers/requests'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/i18n/create-custom-files.ts:11:8 - error TS2307: Cannot find module '../../server/initializers/constants'.
11 } from '../../server/initializers/constants'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/i18n/generate-iso639-target.ts:7:32 - error TS2307: Cannot find module '../../server/initializers/constants'.
7 import { buildLanguages } from '../../server/initializers/constants'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/i18n/xliff2json.ts:4:64 - error TS2307: Cannot find module '../../shared/models/i18n/i18n'.
4 import { buildFileLocale, I18N_LOCALES, isDefaultLocale } from '../../shared/models/i18n/i18n'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/optimize-old-videos.ts:1:39 - error TS2307: Cannot find module '../server/initializers/constants'.
1 import { VIDEO_TRANSCODING_FPS } from '../server/initializers/constants'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/optimize-old-videos.ts:2:104 - error TS2307: Cannot find module '../server/helpers/ffmpeg-utils'.
2 import { getDurationFromVideoFile, getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution } from '../server/helpers/ffmpeg-utils'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/optimize-old-videos.ts:3:31 - error TS2307: Cannot find module '../shared/models/videos'.
3 import { getMaxBitrate } from '../shared/models/videos'
~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/optimize-old-videos.ts:4:28 - error TS2307: Cannot find module '../server/models/video/video'.
4 import { VideoModel } from '../server/models/video/video'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/optimize-old-videos.ts:5:35 - error TS2307: Cannot find module '../server/lib/video-transcoding'.
5 import { optimizeVideofile } from '../server/lib/video-transcoding'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/optimize-old-videos.ts:6:36 - error TS2307: Cannot find module '../server/initializers'.
6 import { initDatabaseModels } from '../server/initializers'
~~~~~~~~~~~~~~~~~~~~~~~~
scripts/optimize-old-videos.ts:9:24 - error TS2307: Cannot find module '../server/initializers/config'.
9 import { CONFIG } from '../server/initializers/config'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/parse-log.ts:6:32 - error TS2307: Cannot find module '../server/helpers/logger'.
6 import { labelFormatter } from '../server/helpers/logger'
~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/parse-log.ts:7:24 - error TS2307: Cannot find module '../server/initializers/config'.
7 import { CONFIG } from '../server/initializers/config'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/parse-log.ts:8:36 - error TS2307: Cannot find module '../shared/core-utils/logs/logs'.
8 import { mtimeSortFilesDesc } from '../shared/core-utils/logs/logs'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/prune-storage.ts:3:24 - error TS2307: Cannot find module '../server/initializers/config'.
3 import { CONFIG } from '../server/initializers/config'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/prune-storage.ts:4:28 - error TS2307: Cannot find module '../server/models/video/video'.
4 import { VideoModel } from '../server/models/video/video'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/prune-storage.ts:5:36 - error TS2307: Cannot find module '../server/initializers'.
5 import { initDatabaseModels } from '../server/initializers'
~~~~~~~~~~~~~~~~~~~~~~~~
scripts/prune-storage.ts:7:38 - error TS2307: Cannot find module '../server/models/redundancy/video-redundancy'.
7 import { VideoRedundancyModel } from '../server/models/redundancy/video-redundancy'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/prune-storage.ts:8:37 - error TS2307: Cannot find module '../server/helpers/utils'.
8 import { getUUIDFromFilename } from '../server/helpers/utils'
~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/reset-password.ts:2:36 - error TS2307: Cannot find module '../server/initializers'.
2 import { initDatabaseModels } from '../server/initializers'
~~~~~~~~~~~~~~~~~~~~~~~~
scripts/reset-password.ts:3:27 - error TS2307: Cannot find module '../server/models/account/user'.
3 import { UserModel } from '../server/models/account/user'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/reset-password.ts:4:37 - error TS2307: Cannot find module '../server/helpers/custom-validators/users'.
4 import { isUserPasswordValid } from '../server/helpers/custom-validators/users'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:1:27 - error TS2307: Cannot find module '../server/initializers/constants'.
1 import { WEBSERVER } from '../server/initializers/constants'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:2:34 - error TS2307: Cannot find module '../server/models/activitypub/actor-follow'.
2 import { ActorFollowModel } from '../server/models/activitypub/actor-follow'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:3:28 - error TS2307: Cannot find module '../server/models/video/video'.
3 import { VideoModel } from '../server/models/video/video'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:4:28 - error TS2307: Cannot find module '../server/models/activitypub/actor'.
4 import { ActorModel } from '../server/models/activitypub/actor'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:11:8 - error TS2307: Cannot find module '../server/lib/activitypub'.
11 } from '../server/lib/activitypub'
~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:12:33 - error TS2307: Cannot find module '../server/models/video/video-share'.
12 import { VideoShareModel } from '../server/models/video/video-share'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:13:35 - error TS2307: Cannot find module '../server/models/video/video-comment'.
13 import { VideoCommentModel } from '../server/models/video/video-comment'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:14:32 - error TS2307: Cannot find module '../server/helpers/utils'.
14 import { getServerActor } from '../server/helpers/utils'
~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:15:30 - error TS2307: Cannot find module '../server/models/account/account'.
15 import { AccountModel } from '../server/models/account/account'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:16:35 - error TS2307: Cannot find module '../server/models/video/video-channel'.
16 import { VideoChannelModel } from '../server/models/video/video-channel'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:17:45 - error TS2307: Cannot find module '../server/models/video/video-streaming-playlist'.
17 import { VideoStreamingPlaylistModel } from '../server/models/video/video-streaming-playlist'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/update-host.ts:18:36 - error TS2307: Cannot find module '../server/initializers'.
18 import { initDatabaseModels } from '../server/initializers'
~~~~~~~~~~~~~~~~~~~~~~~~
Found 42 errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! peertube@1.3.0 tsc: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the peertube@1.3.0 tsc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ops/.npm/_logs/2019-06-14T01_58_24_847Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! peertube@1.3.0 build:server: `scripty`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the peertube@1.3.0 build:server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ops/.npm/_logs/2019-06-14T01_58_25_016Z-debug.log
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.