Problem adding JS file to project with VueJS 2

0

I have the following problem: When I include a local .js file in my project with VueJS I get the following error message.

Herearemystructureandcode:

I realized that if you include an external file, via CDN for example, it works perfectly. Thank you all for the help.

    
asked by anonymous 23.07.2018 / 00:36

1 answer

0

Simple guy, noticed that the script is being called after the body tag. Correct would be:

<body><script src="/../rocketstore/dist/js/mais.min.js"></script></body>
    
23.07.2018 / 00:52