Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.30 KB | None | 0 0
  1. [12:03:37] transpile started ...
  2. [12:03:55] typescript: .../workspace/moodlemobile2/src/core/course/directives/download-module-main-file.ts, line: 63
  3. Cannot find name 'module'.
  4.  
  5. L62: }).finally(() => {
  6. L63: modal.dismiss();
  7. L64: });
  8.  
  9. [12:03:55] typescript: ...rs/sm449/workspace/moodlemobile2/src/core/emulator/classes/inappbrowserobject.ts, line: 40
  10. Cannot find name 'require'.
  11.  
  12. L39: width = display.workArea.width || width;
  13. L40: height = display.workArea.height || height;
  14.  
  15. [12:03:55] typescript: ...rs/sm449/workspace/moodlemobile2/src/core/emulator/classes/inappbrowserobject.ts, line: 41
  16. Cannot find name 'require'.
  17.  
  18. L40: height = display.workArea.height || height;
  19.  
  20. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/emulator.module.ts, line: 211
  21. Cannot find name 'require'.
  22.  
  23.  
  24. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/badge.ts, line: 47
  25. Cannot find name 'require'.
  26.  
  27. L47: * @returns {Promise<any>}
  28.  
  29. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/badge.ts, line: 69
  30. Cannot find name 'require'.
  31.  
  32. L69: increase(increaseBy: number): Promise<any> {
  33. L70: return Promise.reject('increase is only supported in mobile devices');
  34.  
  35. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/clipboard.ts, line: 33
  36. Cannot find name 'require'.
  37.  
  38. L32: * @param {string} text The text to copy.
  39. L33: * @return {Promise<any>} Promise resolved when copied.
  40.  
  41. [12:03:55] typescript: ...:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file-opener.ts, line: 51
  42. Cannot find name 'require'.
  43.  
  44. L50: * @param {string} packageId Package ID.
  45. L51: * @returns {Promise<any>} Promise resolved when done.
  46.  
  47. [12:03:55] typescript: ...Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file-transfer.ts, line: 128
  48. 'FileTransferError' only refers to a type, but is being used as a value here.
  49.  
  50. L127: // In desktop we need to convert the arraybuffer into a Buffer.
  51. L128: response = Buffer.from(<any> new Uint8Array(response));
  52.  
  53. [12:03:55] typescript: ...Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file-transfer.ts, line: 142
  54. Cannot find name 'Buffer'.
  55.  
  56. L141: * This code is extracted from Cordova FileTransfer plugin.
  57. L143: * @param {string} urlString The URL to get the credentials from.
  58.  
  59. [12:03:55] typescript: ...Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file-transfer.ts, line: 236
  60. Cannot find name 'FileUploadOptions'.
  61.  
  62. L235: options.headers = options.headers || {};
  63. L236: options.headers[basicAuthHeader.name] = basicAuthHeader.value;
  64.  
  65. [12:03:55] typescript: ...Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file-transfer.ts, line: 309
  66. 'FileTransferError' only refers to a type, but is being used as a value here.
  67.  
  68. L308: // Create a form data to send params and the file.
  69. L309: const fd = new FormData();
  70. L310: for (const name in params) {
  71.  
  72. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  73. line: 182
  74. Cannot find name 'FileWriter'.
  75.  
  76. L182: * @param {any} err Error.
  77.  
  78. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  79. line: 183
  80. Cannot find name 'FileWriter'.
  81.  
  82. L182: * @param {any} err Error.
  83. L184: private fillErrorMessageMock(err: any): void {
  84.  
  85. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  86. line: 214
  87. Cannot find name 'Flags'.
  88.  
  89. L213: reject(xc);
  90. L215: });
  91.  
  92. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  93. line: 239
  94. Cannot find name 'Flags'.
  95.  
  96. L238: });
  97.  
  98. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  99. line: 262
  100. Property 'requestFileSystem' does not exist on type 'Window'.
  101.  
  102. L261: calculateByRequest(size * ratio, ratio).then(resolve);
  103. L262: }, () => {
  104. L263: resolve(size / ratio);
  105.  
  106. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  107. line: 268
  108. Property 'requestFileSystem' does not exist on type 'Window'.
  109.  
  110. L268: // General calculation, base 1MB and increasing factor 1.3.
  111. L269: calculateByRequest(1048576, 1.3).then((size: number) => {
  112.  
  113. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  114. line: 268
  115. Cannot find name 'LocalFileSystem'.
  116.  
  117. L268: // General calculation, base 1MB and increasing factor 1.3.
  118. L269: calculateByRequest(1048576, 1.3).then((size: number) => {
  119.  
  120. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  121. line: 336
  122. Cannot find name 'require'.
  123.  
  124. L335: basePath = this.textUtils.concatenatePaths(basePath.replace(/\\/g, '/'), CoreConfigConstants.app_id) + '/';
  125. L337: // Create the folder if needed.
  126.  
  127. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  128. line: 337
  129. Cannot find name 'require'.
  130.  
  131. L337: // Create the folder if needed.
  132. L338: fs.mkdir(basePath, (e) => {
  133.  
  134. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  135. line: 364
  136. Property 'requestFileSystem' does not exist on type 'Window'.
  137.  
  138. L363: * @param {Entry} srce The Entry to copy.
  139. L364: * @param {DirectoryEntry} destDir The directory where to move the file/dir.
  140. L365: * @param {string} newName New name of the file/dir.
  141.  
  142. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  143. line: 364
  144. Cannot find name 'LocalFileSystem'.
  145.  
  146. L363: * @param {Entry} srce The Entry to copy.
  147. L364: * @param {DirectoryEntry} destDir The directory where to move the file/dir.
  148. L365: * @param {string} newName New name of the file/dir.
  149.  
  150. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  151. line: 487
  152. Cannot find name 'DirectoryReader'.
  153.  
  154. L487: * @param {string} path Base FileSystem.
  155. L488: * @param {string} file Name of file, relative to path.
  156.  
  157. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  158. line: 620
  159. Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
  160.  
  161. L620: * Remove a directory and all its contents.
  162.  
  163. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  164. line: 657
  165. Cannot find name 'FileWriter'.
  166.  
  167. L656: writer.write(data);
  168. L657: });
  169.  
  170. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/file.ts,
  171. line: 737
  172. Cannot find name 'FileWriter'.
  173.  
  174. L736: writer.onwrite = (): void => {
  175. L737: if (writtenSize < data.size) {
  176. L738: writeNextChunk();
  177.  
  178. [12:03:55] typescript: ...Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/globalization.ts, line: 40
  179. Cannot find name 'require'.
  180.  
  181. L39: * @return {Promise<{value: string}>} Promise resolved with an object with the language
  182. string.
  183. L41: getLocaleName(): Promise<{ value: string }> {
  184.  
  185. [12:03:55] typescript: ...Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/globalization.ts, line: 60
  186. Cannot find name 'GlobalizationError'.
  187.  
  188.  
  189. [12:03:55] typescript: ...sm449/workspace/moodlemobile2/src/core/emulator/providers/local-notifications.ts, line: 448
  190. Cannot find name 'require'.
  191.  
  192. L447: delete notification.triggered;
  193. L448: this.scheduled[notification.id] = {
  194. L449: notification: notification
  195.  
  196. [12:03:55] typescript: ...sm449/workspace/moodlemobile2/src/core/emulator/providers/local-notifications.ts, line: 521
  197. Cannot find name 'require'.
  198.  
  199. L521: this.observers[eventName].push(callback);
  200.  
  201. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/push.ts,
  202. line: 119
  203. Cannot find name 'require'.
  204.  
  205. L118: * successHandler gets called with an integer which is the current badge count
  206. L120: getApplicationIconBadgeNumber(): Promise<number> {
  207.  
  208. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/core/emulator/providers/push.ts,
  209. line: 140
  210. Cannot find name 'require'.
  211.  
  212. L140: finish(id?: string): Promise<any> {
  213. L141: return Promise.reject('finish is only supported in mobile devices');
  214.  
  215. [12:03:55] typescript: ...sm449/workspace/moodlemobile2/src/core/settings/pages/space-usage/space-usage.ts, line: 163
  216. Cannot find name 'FileError'.
  217.  
  218. L162: // Ignore cancelled confirmation modal.
  219. L163: });
  220. L164: });
  221.  
  222. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/app.ts, line: 162
  223. Cannot find name 'require'.
  224.  
  225. L161: return false;
  226.  
  227. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/app.ts, line: 179
  228. Cannot find name 'require'.
  229.  
  230.  
  231. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/app.ts, line: 209
  232. Cannot find name 'Connection'.
  233.  
  234. L209: isNetworkAccessLimited(): boolean {
  235. L210: const type = this.network.type;
  236.  
  237. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/app.ts, line: 209
  238. Cannot find name 'Connection'.
  239.  
  240. L209: isNetworkAccessLimited(): boolean {
  241. L210: const type = this.network.type;
  242.  
  243. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/app.ts, line: 230
  244. Cannot find name 'Connection'.
  245.  
  246. L231: try {
  247.  
  248. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/app.ts, line: 230
  249. Cannot find name 'Connection'.
  250.  
  251. L231: try {
  252.  
  253. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/app.ts, line: 230
  254. Cannot find name 'Connection'.
  255.  
  256. L231: try {
  257.  
  258. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/app.ts, line: 230
  259. Cannot find name 'Connection'.
  260.  
  261. L231: try {
  262.  
  263. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/app.ts, line: 246
  264. Cannot find name 'require'.
  265.  
  266.  
  267. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/file.ts, line: 102
  268. Property 'resolveLocalFileSystemURL' does not exist on type 'Window'.
  269.  
  270. L101: return this.file.resolveLocalFilesystemUrl(this.addBasePathIfNeeded(path));
  271. L102: }).then((entry) => {
  272. L103: return <FileEntry> entry;
  273.  
  274. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/file.ts, line: 769
  275. Cannot find name 'Entry'.
  276.  
  277. L768: * @param {string} path Path to the file/dir.
  278. L769: * @param {boolean} [isDir] True if directory, false if file.
  279. L770: * @return {Promise<any>} Promise resolved with metadata.
  280.  
  281. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/utils/utils.ts, line: 193
  282. Cannot find name 'require'.
  283.  
  284. L192: // Clone the array and all the entries.
  285. L193: const newArray = [];
  286. L194: for (let i = 0; i < source.length; i++) {
  287.  
  288. [12:03:55] typescript: C:/Users/sm449/workspace/moodlemobile2/src/providers/utils/utils.ts, line: 782
  289. Cannot find name 'require'.
  290.  
  291. L782: * @param {string} url The URL of the file.
  292. L783: * @return {Promise<void>} Promise resolved when opened.
  293.  
  294. [12:03:55] dev server running: http://localhost:8100/
  295.  
  296.  
  297. $ node --version
  298. v6.9.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement