Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.97 KB | None | 0 0
  1. ⠙ Building for production...Starting type checking and linting service...
  2. Using 1 worker with 2048MB memory limit
  3. ⠴ Building for production...
  4.  
  5. ERROR Failed to compile with 33 errors 4:27:51 PM
  6.  
  7. error in /home/poti/fizleti/frontend/src/components/nav/NavigationComponent.vue
  8.  
  9. ERROR in /home/poti/fizleti/frontend/src/components/nav/NavigationComponent.vue
  10. 53:26 Could not find a declaration file for module '../../event-bus.js'. '/home/poti/fizleti/frontend/src/event-bus.js' implicitly has an 'any' type.
  11. 51 | import VueResource from "vue-resource";
  12. 52 |
  13. > 53 | import { EventBus } from "../../event-bus.js";
  14. | ^
  15. 54 |
  16. 55 | Vue.use(VueResource);
  17. 56 |
  18.  
  19. error in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
  20.  
  21. ERROR in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
  22. 23:18 Property 'index' has no initializer and is not definitely assigned in the constructor.
  23. 21 | export default class NavigationButtonComponent extends Vue {
  24. 22 | @Prop() public picturePath!: string;
  25. > 23 | @Prop() public index: number;
  26. | ^
  27. 24 | public subcategory: Subcategory;
  28. 25 | public simulations: Simulation[];
  29. 26 |
  30.  
  31. error in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
  32.  
  33. ERROR in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
  34. 24:10 Property 'subcategory' has no initializer and is not definitely assigned in the constructor.
  35. 22 | @Prop() public picturePath!: string;
  36. 23 | @Prop() public index: number;
  37. > 24 | public subcategory: Subcategory;
  38. | ^
  39. 25 | public simulations: Simulation[];
  40. 26 |
  41. 27 | public path: string;
  42.  
  43. error in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
  44.  
  45. ERROR in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
  46. 25:10 Property 'simulations' has no initializer and is not definitely assigned in the constructor.
  47. 23 | @Prop() public index: number;
  48. 24 | public subcategory: Subcategory;
  49. > 25 | public simulations: Simulation[];
  50. | ^
  51. 26 |
  52. 27 | public path: string;
  53. 28 | public neighbourName: string;
  54.  
  55. error in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
  56.  
  57. ERROR in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
  58. 27:10 Property 'path' has no initializer and is not definitely assigned in the constructor.
  59. 25 | public simulations: Simulation[];
  60. 26 |
  61. > 27 | public path: string;
  62. | ^
  63. 28 | public neighbourName: string;
  64. 29 | $store: any;
  65. 30 | $route: any;
  66.  
  67. error in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
  68.  
  69. ERROR in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
  70. 28:10 Property 'neighbourName' has no initializer and is not definitely assigned in the constructor.
  71. 26 |
  72. 27 | public path: string;
  73. > 28 | public neighbourName: string;
  74. | ^
  75. 29 | $store: any;
  76. 30 | $route: any;
  77. 31 |
  78.  
  79. error in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
  80.  
  81. ERROR in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
  82. 43:19 Property 'title' has no initializer and is not definitely assigned in the constructor.
  83. 41 | @Component
  84. 42 | export default class SearchComponent extends Vue {
  85. > 43 | @Prop() private title: string;
  86. | ^
  87. 44 | @Prop() private el: string;
  88. 45 |
  89. 46 | private categoryRoute = "";
  90.  
  91. error in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
  92.  
  93. ERROR in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
  94. 44:19 Property 'el' has no initializer and is not definitely assigned in the constructor.
  95. 42 | export default class SearchComponent extends Vue {
  96. 43 | @Prop() private title: string;
  97. > 44 | @Prop() private el: string;
  98. | ^
  99. 45 |
  100. 46 | private categoryRoute = "";
  101. 47 | private subcategoryRoute = "";
  102.  
  103. error in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
  104.  
  105. ERROR in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
  106. 51:34 Property 'category' does not exist on type 'string'.
  107. 49 |
  108. 50 | private created() {
  109. > 51 | this.categoryRoute = this.el.category.replace(/ /g, "_").toLowerCase();
  110. | ^
  111. 52 | this.subcategoryRoute = this.el.subcategory
  112. 53 | .replace(/ /g, "_")
  113. 54 | .toLowerCase();
  114.  
  115. error in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
  116.  
  117. ERROR in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
  118. 52:37 Property 'subcategory' does not exist on type 'string'.
  119. 50 | private created() {
  120. 51 | this.categoryRoute = this.el.category.replace(/ /g, "_").toLowerCase();
  121. > 52 | this.subcategoryRoute = this.el.subcategory
  122. | ^
  123. 53 | .replace(/ /g, "_")
  124. 54 | .toLowerCase();
  125. 55 | this.simulationRoute = this.el.title.replace(/ /g, "_").toLowerCase();
  126.  
  127. error in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
  128.  
  129. ERROR in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
  130. 55:36 Property 'title' does not exist on type 'string'.
  131. 53 | .replace(/ /g, "_")
  132. 54 | .toLowerCase();
  133. > 55 | this.simulationRoute = this.el.title.replace(/ /g, "_").toLowerCase();
  134. | ^
  135. 56 | }
  136. 57 | }
  137. 58 | </script>
  138.  
  139. error in /home/poti/fizleti/frontend/src/views/AboutView.vue
  140.  
  141. ERROR in /home/poti/fizleti/frontend/src/views/AboutView.vue
  142. 30:21 Could not find a declaration file for module 'util'. '/home/poti/fizleti/frontend/node_modules/util/util.js' implicitly has an 'any' type.
  143. Try `npm install @types/util` if it exists or add a new declaration (.d.ts) file containing `declare module 'util';`
  144. 28 | import Component from "vue-class-component";
  145. 29 | import { Prop, Watch } from "vue-property-decorator";
  146. > 30 | import { log } from "util";
  147. | ^
  148. 31 | import SearchComponent from "../components/SearchComponent.vue";
  149. 32 | import { Simulation } from "../declerations/Simulation";
  150. 33 |
  151.  
  152. error in /home/poti/fizleti/frontend/src/views/AboutView.vue
  153.  
  154. ERROR in /home/poti/fizleti/frontend/src/views/AboutView.vue
  155. 34:26 Could not find a declaration file for module '../event-bus.js'. '/home/poti/fizleti/frontend/src/event-bus.js' implicitly has an 'any' type.
  156. 32 | import { Simulation } from "../declerations/Simulation";
  157. 33 |
  158. > 34 | import { EventBus } from "../event-bus.js";
  159. | ^
  160. 35 |
  161. 36 | @Component({
  162. 37 | components: {
  163.  
  164. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  165.  
  166. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  167. 24:21 Could not find a declaration file for module 'util'. '/home/poti/fizleti/frontend/node_modules/util/util.js' implicitly has an 'any' type.
  168. Try `npm install @types/util` if it exists or add a new declaration (.d.ts) file containing `declare module 'util';`
  169. 22 | import Component from "vue-class-component";
  170. 23 | import { Prop, Watch } from "vue-property-decorator";
  171. > 24 | import { log } from "util";
  172. | ^
  173. 25 | import SearchComponent from "../components/SearchComponent.vue";
  174. 26 | import { Simulation } from "../declerations/Simulation";
  175. 27 |
  176.  
  177. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  178.  
  179. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  180. 28:26 Could not find a declaration file for module '../event-bus.js'. '/home/poti/fizleti/frontend/src/event-bus.js' implicitly has an 'any' type.
  181. 26 | import { Simulation } from "../declerations/Simulation";
  182. 27 |
  183. > 28 | import { EventBus } from "../event-bus.js";
  184. | ^
  185. 29 |
  186. 30 | @Component({
  187. 31 | components: {
  188.  
  189. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  190.  
  191. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  192. 37:18 Property 'searchString' has no initializer and is not definitely assigned in the constructor.
  193. 35 | export default class SearchView extends Vue {
  194. 36 | $http: any;
  195. > 37 | @Prop() public searchString: string;
  196. | ^
  197. 38 | public results = [];
  198. 39 | public filteredBlogs = this.results;
  199. 40 | public niz: string = "";
  200.  
  201. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  202.  
  203. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  204. 44:33 Parameter 'niz' implicitly has an 'any' type.
  205. 42 | private mounted() {
  206. 43 | // Listen for the 'clicked-event' and its payload.
  207. > 44 | EventBus.$on("keyup-event", niz => {
  208. | ^
  209. 45 | this.niz = niz;
  210. 46 | });
  211. 47 | }
  212.  
  213. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  214.  
  215. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  216. 50:73 Parameter 'data' implicitly has an 'any' type.
  217. 48 |
  218. 49 | private beforeCreate() {
  219. > 50 | this.$http.get("http://localhost:8311/api/category/").then(function(data) {
  220. | ^
  221. 51 | if (data) {
  222. 52 | this.allData = data;
  223. 53 | console.log("data from API succesfully obtained");
  224.  
  225. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  226.  
  227. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  228. 52:9 'this' implicitly has type 'any' because it does not have a type annotation.
  229. 50 | this.$http.get("http://localhost:8311/api/category/").then(function(data) {
  230. 51 | if (data) {
  231. > 52 | this.allData = data;
  232. | ^
  233. 53 | console.log("data from API succesfully obtained");
  234. 54 | var data1 = this.allData.body;
  235. 55 |
  236.  
  237. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  238.  
  239. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  240. 54:21 'this' implicitly has type 'any' because it does not have a type annotation.
  241. 52 | this.allData = data;
  242. 53 | console.log("data from API succesfully obtained");
  243. > 54 | var data1 = this.allData.body;
  244. | ^
  245. 55 |
  246. 56 | for (var i = 1; i < data1.length; i++) {
  247. 57 | for (var j = 0; j < data1[i].subcategories.length; j++) {
  248.  
  249. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  250.  
  251. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  252. 63:15 'this' implicitly has type 'any' because it does not have a type annotation.
  253. 61 | k++
  254. 62 | ) {
  255. > 63 | this.results.push(data1[i].subcategories[j].simulations[k]);
  256. | ^
  257. 64 | }
  258. 65 | }
  259. 66 | }
  260.  
  261. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  262.  
  263. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  264. 81:25 Property 'title' does not exist on type 'never'.
  265. 79 | for (var i = 0; i < this.results.length; i++) {
  266. 80 | if (
  267. > 81 | this.results[i].title.toLowerCase().includes(this.niz.toLowerCase()) ||
  268. | ^
  269. 82 | this.results[i].category
  270. 83 | .toLowerCase()
  271. 84 | .includes(this.niz.toLowerCase()) ||
  272.  
  273. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  274.  
  275. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  276. 82:25 Property 'category' does not exist on type 'never'.
  277. 80 | if (
  278. 81 | this.results[i].title.toLowerCase().includes(this.niz.toLowerCase()) ||
  279. > 82 | this.results[i].category
  280. | ^
  281. 83 | .toLowerCase()
  282. 84 | .includes(this.niz.toLowerCase()) ||
  283. 85 | this.results[i].subcategory
  284.  
  285. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  286.  
  287. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  288. 85:25 Property 'subcategory' does not exist on type 'never'.
  289. 83 | .toLowerCase()
  290. 84 | .includes(this.niz.toLowerCase()) ||
  291. > 85 | this.results[i].subcategory
  292. | ^
  293. 86 | .toLowerCase()
  294. 87 | .includes(this.niz.toLowerCase()) ||
  295. 88 | this.results[i].instructions
  296.  
  297. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  298.  
  299. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  300. 88:25 Property 'instructions' does not exist on type 'never'.
  301. 86 | .toLowerCase()
  302. 87 | .includes(this.niz.toLowerCase()) ||
  303. > 88 | this.results[i].instructions
  304. | ^
  305. 89 | .toLowerCase()
  306. 90 | .includes(this.niz.toLowerCase()) ||
  307. 91 | this.results[i].explenation
  308.  
  309. error in /home/poti/fizleti/frontend/src/views/SearchView.vue
  310.  
  311. ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
  312. 91:25 Property 'explenation' does not exist on type 'never'.
  313. 89 | .toLowerCase()
  314. 90 | .includes(this.niz.toLowerCase()) ||
  315. > 91 | this.results[i].explenation
  316. | ^
  317. 92 | .toLowerCase()
  318. 93 | .includes(this.niz.toLowerCase())
  319. 94 | ) {
  320.  
  321. error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  322.  
  323. ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  324. 135:10 Property 'subcategory' has no initializer and is not definitely assigned in the constructor.
  325. 133 | public filteredRegularButtons: any[] = [];
  326. 134 |
  327. > 135 | public subcategory: Subcategory;
  328. | ^
  329. 136 | public simulations: Simulation[];
  330. 137 | public idx: number;
  331. 138 | public name: string;
  332.  
  333. error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  334.  
  335. ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  336. 136:10 Property 'simulations' has no initializer and is not definitely assigned in the constructor.
  337. 134 |
  338. 135 | public subcategory: Subcategory;
  339. > 136 | public simulations: Simulation[];
  340. | ^
  341. 137 | public idx: number;
  342. 138 | public name: string;
  343. 139 |
  344.  
  345. error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  346.  
  347. ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  348. 137:10 Property 'idx' has no initializer and is not definitely assigned in the constructor.
  349. 135 | public subcategory: Subcategory;
  350. 136 | public simulations: Simulation[];
  351. > 137 | public idx: number;
  352. | ^
  353. 138 | public name: string;
  354. 139 |
  355. 140 | private changeAnimation(event: any) {
  356.  
  357. error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  358.  
  359. ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  360. 138:10 Property 'name' has no initializer and is not definitely assigned in the constructor.
  361. 136 | public simulations: Simulation[];
  362. 137 | public idx: number;
  363. > 138 | public name: string;
  364. | ^
  365. 139 |
  366. 140 | private changeAnimation(event: any) {
  367. 141 | let animationName = event.target.value;
  368.  
  369. error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  370.  
  371. ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  372. 161:23 Object is possibly 'undefined'.
  373. 159 |
  374. 160 | ////////////////////// part for custom and normal buttons ///////////////////////////////////
  375. > 161 | this.allButtons = this.simulation.buttons;
  376. | ^
  377. 162 |
  378. 163 | this.filteredAnimationButtons = this.allButtons.filter(function(button) {
  379. 164 | return button.img === "animation.svg";
  380.  
  381. error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  382.  
  383. ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  384. 176:17 Object is possibly 'undefined'.
  385. 174 |
  386. 175 | ////////////////////// part for neighbour buttons ///////////////////////////////////
  387. > 176 | this.name = this.simulation.routeName;
  388. | ^
  389. 177 |
  390. 178 | // we get current simulations array
  391. 179 | this.simulations = this.subcategory.simulations;
  392.  
  393. error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  394.  
  395. ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
  396. 181:5 Type 'number | undefined' is not assignable to type 'number'.
  397. Type 'undefined' is not assignable to type 'number'.
  398. 179 | this.simulations = this.subcategory.simulations;
  399. 180 |
  400. > 181 | this.idx = this.index(this.simulations, this.name);
  401. | ^
  402. 182 | }
  403. 183 |
  404. 184 | private index(simulations: Simulation[], name: string) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement