Unexpected token <
See original GitHub issueapp.js
import Vue from 'vue'
import BootstrapVue from 'bootstrap-vue';
import Icon from 'vue-awesome/components/Icon.vue'
import { event } from './utils'
import store from './store'
Vue.use(BootstrapVue);
Vue.component('icon', Icon);
const app = new Vue({
el: '#app',
store,
render: h => h(require('./main.vue')),
created () {
event.init()
}
})
export { app, store }
“brunch”: “2.7.4” “vue”: “2.1.8”
Has anyone encountered this problem?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top Results From Across the Web
syntax error: unexpected token - javascript - Stack Overflow
The error SyntaxError: Unexpected token < likely means the API endpoint didn't return JSON in its document body, such as due to a...
Read more >Have a JavaScript Unexpected Token Error? Check Your Syntax
The JavaScript's parser expects tokens and symbols in a particular order, with relevant values or variables in between. Often, an Unexpected ...
Read more >JavaScript Error Handling: Unexpected Token - GeeksforGeeks
Not follow them throws an error.An unexpected token occurs if JavaScript code has a missing or extra character { like, ) + –...
Read more >Syntax Error: Unexpected Token '<' - Codecademy
I don't understand what's wrong with my code. Whenever I run it, this pops up: syntax error: unexpected token '<'. Someone please help!...
Read more >Unexpected token - Common causes and quick fixes - Opster
Unexpected token – How to solve this Elasticsearch error. Opster Team. July-20, Version: 1.7-8.0. Before you ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
im getting this:
@Justineo This works for me:
The real path for
vue-awesome
innode_modules
is.2.1.0@vue-awesome
notvue-awesome
BTW, is the file “util.js” necessary?