Error of a Vue project with Laravel

Asked

Viewed 60 times

2

The first mistake is saying that you’re in this place called main.js, and I found no error in this file;

import Vue from 'vue'
import app from './app'

require('./bootstrap');


new Vue(app).$mount('#app');

that’s the mistake:

The error numbers are so large that I had to put it in the repository because it didn’t fit here

My repository

I need to see every one of them.

  • This is because of ESLINT, he is warning about the dots and comma. Just take them off and already will disappear most of the mistakes

  • If it’s his problem then how do I solve the problem?

  • Just erase the ; of your code and ready ;)

  • Thanks, I’m correcting the code, just a minute.

1 answer

1


As I said in reply, for you to solve your mistakes, start by taking out all the ; which it owns. Ex:

import Vue from 'vue'
import app from './app'

require('./bootstrap')

new Vue(app).$mount('#app')

And do it in every file you put in ;

Here has an example of ESLint

To disable its use in a specific file (eg: Bootstrap), Voce can put this at the beginning of the file /* eslint-disable */.

Other additional settings you can see on the site above.

  • Just one question, please! I removed the dots and commas in the main.js file then ran again the project it is asking to remove all the dots and commas from the bootstrap.js file. The Vue.js technology does not use point and comma ?

  • 1

    The question is not the VueJS and yes the ESLINT but Voce can configure it to accept the ;, I’ll edit my answer

  • Thank you very much, I’m in great need of help.

  • @wladyband I edited

  • I understood more or less with disabling the ESLINT, but I will do a new post to solve this problem.

  • 1

    @wladyband Voce can also create a project without the ESLint, whenever you will create your project, just keep an eye on the questions, you will get one that asks you if you want to use the ESLint just put the n and squeeze Enter

  • In the video lesson the teacher guides in enabling the ESLINT, now is to know why he guides in enabling the ESLINT, you know what it is for?

  • I just put in all parts of the project and where I put the note still continues with the problem. :(

  • 1

    Like I said the ESLint serves to avoid some patterns, so you can configure it, to give error whenever following such path, thus avoid staying Refaturando the code.

  • I’ll create the project without ESLINT and I’ll tell you if I can move up the project.

  • 1

    All right, I’ll be waiting ;)

  • I just created the application from scratch without ESLINT and succeeded. Thank you very much indeed.

Show 7 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.