Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ⠙ Building for production...Starting type checking and linting service...
- Using 1 worker with 2048MB memory limit
- ⠴ Building for production...
- ERROR Failed to compile with 33 errors 4:27:51 PM
- error in /home/poti/fizleti/frontend/src/components/nav/NavigationComponent.vue
- ERROR in /home/poti/fizleti/frontend/src/components/nav/NavigationComponent.vue
- 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.
- 51 | import VueResource from "vue-resource";
- 52 |
- > 53 | import { EventBus } from "../../event-bus.js";
- | ^
- 54 |
- 55 | Vue.use(VueResource);
- 56 |
- error in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
- ERROR in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
- 23:18 Property 'index' has no initializer and is not definitely assigned in the constructor.
- 21 | export default class NavigationButtonComponent extends Vue {
- 22 | @Prop() public picturePath!: string;
- > 23 | @Prop() public index: number;
- | ^
- 24 | public subcategory: Subcategory;
- 25 | public simulations: Simulation[];
- 26 |
- error in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
- ERROR in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
- 24:10 Property 'subcategory' has no initializer and is not definitely assigned in the constructor.
- 22 | @Prop() public picturePath!: string;
- 23 | @Prop() public index: number;
- > 24 | public subcategory: Subcategory;
- | ^
- 25 | public simulations: Simulation[];
- 26 |
- 27 | public path: string;
- error in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
- ERROR in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
- 25:10 Property 'simulations' has no initializer and is not definitely assigned in the constructor.
- 23 | @Prop() public index: number;
- 24 | public subcategory: Subcategory;
- > 25 | public simulations: Simulation[];
- | ^
- 26 |
- 27 | public path: string;
- 28 | public neighbourName: string;
- error in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
- ERROR in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
- 27:10 Property 'path' has no initializer and is not definitely assigned in the constructor.
- 25 | public simulations: Simulation[];
- 26 |
- > 27 | public path: string;
- | ^
- 28 | public neighbourName: string;
- 29 | $store: any;
- 30 | $route: any;
- error in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
- ERROR in /home/poti/fizleti/frontend/src/components/NeighbourSimulationButton.vue
- 28:10 Property 'neighbourName' has no initializer and is not definitely assigned in the constructor.
- 26 |
- 27 | public path: string;
- > 28 | public neighbourName: string;
- | ^
- 29 | $store: any;
- 30 | $route: any;
- 31 |
- error in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
- ERROR in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
- 43:19 Property 'title' has no initializer and is not definitely assigned in the constructor.
- 41 | @Component
- 42 | export default class SearchComponent extends Vue {
- > 43 | @Prop() private title: string;
- | ^
- 44 | @Prop() private el: string;
- 45 |
- 46 | private categoryRoute = "";
- error in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
- ERROR in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
- 44:19 Property 'el' has no initializer and is not definitely assigned in the constructor.
- 42 | export default class SearchComponent extends Vue {
- 43 | @Prop() private title: string;
- > 44 | @Prop() private el: string;
- | ^
- 45 |
- 46 | private categoryRoute = "";
- 47 | private subcategoryRoute = "";
- error in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
- ERROR in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
- 51:34 Property 'category' does not exist on type 'string'.
- 49 |
- 50 | private created() {
- > 51 | this.categoryRoute = this.el.category.replace(/ /g, "_").toLowerCase();
- | ^
- 52 | this.subcategoryRoute = this.el.subcategory
- 53 | .replace(/ /g, "_")
- 54 | .toLowerCase();
- error in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
- ERROR in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
- 52:37 Property 'subcategory' does not exist on type 'string'.
- 50 | private created() {
- 51 | this.categoryRoute = this.el.category.replace(/ /g, "_").toLowerCase();
- > 52 | this.subcategoryRoute = this.el.subcategory
- | ^
- 53 | .replace(/ /g, "_")
- 54 | .toLowerCase();
- 55 | this.simulationRoute = this.el.title.replace(/ /g, "_").toLowerCase();
- error in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
- ERROR in /home/poti/fizleti/frontend/src/components/SearchComponent.vue
- 55:36 Property 'title' does not exist on type 'string'.
- 53 | .replace(/ /g, "_")
- 54 | .toLowerCase();
- > 55 | this.simulationRoute = this.el.title.replace(/ /g, "_").toLowerCase();
- | ^
- 56 | }
- 57 | }
- 58 | </script>
- error in /home/poti/fizleti/frontend/src/views/AboutView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/AboutView.vue
- 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.
- Try `npm install @types/util` if it exists or add a new declaration (.d.ts) file containing `declare module 'util';`
- 28 | import Component from "vue-class-component";
- 29 | import { Prop, Watch } from "vue-property-decorator";
- > 30 | import { log } from "util";
- | ^
- 31 | import SearchComponent from "../components/SearchComponent.vue";
- 32 | import { Simulation } from "../declerations/Simulation";
- 33 |
- error in /home/poti/fizleti/frontend/src/views/AboutView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/AboutView.vue
- 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.
- 32 | import { Simulation } from "../declerations/Simulation";
- 33 |
- > 34 | import { EventBus } from "../event-bus.js";
- | ^
- 35 |
- 36 | @Component({
- 37 | components: {
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 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.
- Try `npm install @types/util` if it exists or add a new declaration (.d.ts) file containing `declare module 'util';`
- 22 | import Component from "vue-class-component";
- 23 | import { Prop, Watch } from "vue-property-decorator";
- > 24 | import { log } from "util";
- | ^
- 25 | import SearchComponent from "../components/SearchComponent.vue";
- 26 | import { Simulation } from "../declerations/Simulation";
- 27 |
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 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.
- 26 | import { Simulation } from "../declerations/Simulation";
- 27 |
- > 28 | import { EventBus } from "../event-bus.js";
- | ^
- 29 |
- 30 | @Component({
- 31 | components: {
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 37:18 Property 'searchString' has no initializer and is not definitely assigned in the constructor.
- 35 | export default class SearchView extends Vue {
- 36 | $http: any;
- > 37 | @Prop() public searchString: string;
- | ^
- 38 | public results = [];
- 39 | public filteredBlogs = this.results;
- 40 | public niz: string = "";
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 44:33 Parameter 'niz' implicitly has an 'any' type.
- 42 | private mounted() {
- 43 | // Listen for the 'clicked-event' and its payload.
- > 44 | EventBus.$on("keyup-event", niz => {
- | ^
- 45 | this.niz = niz;
- 46 | });
- 47 | }
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 50:73 Parameter 'data' implicitly has an 'any' type.
- 48 |
- 49 | private beforeCreate() {
- > 50 | this.$http.get("http://localhost:8311/api/category/").then(function(data) {
- | ^
- 51 | if (data) {
- 52 | this.allData = data;
- 53 | console.log("data from API succesfully obtained");
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 52:9 'this' implicitly has type 'any' because it does not have a type annotation.
- 50 | this.$http.get("http://localhost:8311/api/category/").then(function(data) {
- 51 | if (data) {
- > 52 | this.allData = data;
- | ^
- 53 | console.log("data from API succesfully obtained");
- 54 | var data1 = this.allData.body;
- 55 |
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 54:21 'this' implicitly has type 'any' because it does not have a type annotation.
- 52 | this.allData = data;
- 53 | console.log("data from API succesfully obtained");
- > 54 | var data1 = this.allData.body;
- | ^
- 55 |
- 56 | for (var i = 1; i < data1.length; i++) {
- 57 | for (var j = 0; j < data1[i].subcategories.length; j++) {
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 63:15 'this' implicitly has type 'any' because it does not have a type annotation.
- 61 | k++
- 62 | ) {
- > 63 | this.results.push(data1[i].subcategories[j].simulations[k]);
- | ^
- 64 | }
- 65 | }
- 66 | }
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 81:25 Property 'title' does not exist on type 'never'.
- 79 | for (var i = 0; i < this.results.length; i++) {
- 80 | if (
- > 81 | this.results[i].title.toLowerCase().includes(this.niz.toLowerCase()) ||
- | ^
- 82 | this.results[i].category
- 83 | .toLowerCase()
- 84 | .includes(this.niz.toLowerCase()) ||
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 82:25 Property 'category' does not exist on type 'never'.
- 80 | if (
- 81 | this.results[i].title.toLowerCase().includes(this.niz.toLowerCase()) ||
- > 82 | this.results[i].category
- | ^
- 83 | .toLowerCase()
- 84 | .includes(this.niz.toLowerCase()) ||
- 85 | this.results[i].subcategory
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 85:25 Property 'subcategory' does not exist on type 'never'.
- 83 | .toLowerCase()
- 84 | .includes(this.niz.toLowerCase()) ||
- > 85 | this.results[i].subcategory
- | ^
- 86 | .toLowerCase()
- 87 | .includes(this.niz.toLowerCase()) ||
- 88 | this.results[i].instructions
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 88:25 Property 'instructions' does not exist on type 'never'.
- 86 | .toLowerCase()
- 87 | .includes(this.niz.toLowerCase()) ||
- > 88 | this.results[i].instructions
- | ^
- 89 | .toLowerCase()
- 90 | .includes(this.niz.toLowerCase()) ||
- 91 | this.results[i].explenation
- error in /home/poti/fizleti/frontend/src/views/SearchView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SearchView.vue
- 91:25 Property 'explenation' does not exist on type 'never'.
- 89 | .toLowerCase()
- 90 | .includes(this.niz.toLowerCase()) ||
- > 91 | this.results[i].explenation
- | ^
- 92 | .toLowerCase()
- 93 | .includes(this.niz.toLowerCase())
- 94 | ) {
- error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- 135:10 Property 'subcategory' has no initializer and is not definitely assigned in the constructor.
- 133 | public filteredRegularButtons: any[] = [];
- 134 |
- > 135 | public subcategory: Subcategory;
- | ^
- 136 | public simulations: Simulation[];
- 137 | public idx: number;
- 138 | public name: string;
- error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- 136:10 Property 'simulations' has no initializer and is not definitely assigned in the constructor.
- 134 |
- 135 | public subcategory: Subcategory;
- > 136 | public simulations: Simulation[];
- | ^
- 137 | public idx: number;
- 138 | public name: string;
- 139 |
- error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- 137:10 Property 'idx' has no initializer and is not definitely assigned in the constructor.
- 135 | public subcategory: Subcategory;
- 136 | public simulations: Simulation[];
- > 137 | public idx: number;
- | ^
- 138 | public name: string;
- 139 |
- 140 | private changeAnimation(event: any) {
- error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- 138:10 Property 'name' has no initializer and is not definitely assigned in the constructor.
- 136 | public simulations: Simulation[];
- 137 | public idx: number;
- > 138 | public name: string;
- | ^
- 139 |
- 140 | private changeAnimation(event: any) {
- 141 | let animationName = event.target.value;
- error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- 161:23 Object is possibly 'undefined'.
- 159 |
- 160 | ////////////////////// part for custom and normal buttons ///////////////////////////////////
- > 161 | this.allButtons = this.simulation.buttons;
- | ^
- 162 |
- 163 | this.filteredAnimationButtons = this.allButtons.filter(function(button) {
- 164 | return button.img === "animation.svg";
- error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- 176:17 Object is possibly 'undefined'.
- 174 |
- 175 | ////////////////////// part for neighbour buttons ///////////////////////////////////
- > 176 | this.name = this.simulation.routeName;
- | ^
- 177 |
- 178 | // we get current simulations array
- 179 | this.simulations = this.subcategory.simulations;
- error in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- ERROR in /home/poti/fizleti/frontend/src/views/SimulationView.vue
- 181:5 Type 'number | undefined' is not assignable to type 'number'.
- Type 'undefined' is not assignable to type 'number'.
- 179 | this.simulations = this.subcategory.simulations;
- 180 |
- > 181 | this.idx = this.index(this.simulations, this.name);
- | ^
- 182 | }
- 183 |
- 184 | private index(simulations: Simulation[], name: string) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement