Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Invalid character #13

Closed
karneaud opened this issue Dec 5, 2016 · 2 comments
Closed

Invalid character #13

karneaud opened this issue Dec 5, 2016 · 2 comments

Comments

@karneaud
Copy link

karneaud commented Dec 5, 2016

I'm using your package with elixir and everything works fine in all browser EXCEPT IE11 which just leaves me with

SCRIPT1014: Invalid character
File: backend-app.js, Line: 270, Column: 1

Line 270 in the compiled js is

eval("module.exports = {\r\n    template: `<nav>\r\n        <ul class=\"pagination\" v-if=\"pagination.last_page > 0\" :class=\"sizeClass\">\r\n            <li v-if=\"showPrevious()\" :class=\"{ 'disabled' : pagination.current_page <= 1 }\">\r\n                <span v-if=\"pagination.current_page <= 1\">\r\n                    <span aria-hidden=\"true\">{{ config.previousText }}</span>\r\n                </span>\r\n                \r\n                <a href=\"#\" 

.... // snippet
```

So you have any idea what is causing it?
@pogachar
Copy link
Collaborator

pogachar commented Dec 5, 2016

I don't think IE supports template literals. If you're using laravel elixir, use mix.webpack(). You might need to configure webpack a bit. Check this stackoverflow link how to transpile es6 to es5.

@karneaud
Copy link
Author

karneaud commented Dec 6, 2016

@pogachar Yes I had to alter your package to correct the issue. You might want to think about refactoring it as there are people who need to develop for IE :-)

@karneaud karneaud closed this as completed Dec 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants