Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token #105

Closed
mgobishop opened this issue Aug 5, 2018 · 7 comments
Closed

Unexpected token #105

mgobishop opened this issue Aug 5, 2018 · 7 comments
Labels

Comments

@mgobishop
Copy link

I have included vue-pdf in my application but it now fails to build:

SyntaxError: Unexpected token (2:0) while parsing vuePdfNoSss.vue while parsing file: node_modules/vue-pdf/src/vuePdfNoSss.vue
at DestroyableTransform.end [as _flush] (node_modules/insert-module-globals/index.js:107:21)

I'm building using babelify, etc:

browserify -t vueify -e ./src/vue.js -o dist/bundle.js -t [ babelify --presets [ 'es2016' ] ]

Any help would be appreciated :-)

@michelleLegend
Copy link

Same issue:

[vue-router] Failed to resolve async component default: SyntaxError: Unexpected token <
[vue-router] uncaught error during route navigation:
~/node_modules/vue-pdf/src/vuePdfNoSss.vue:1
(function (exports, require, module, __filename, __dirname) { <script>

@tpin85
Copy link

tpin85 commented Aug 30, 2018

Exactly same issue.
Use with nuxt js.

@tpin85
Copy link

tpin85 commented Sep 13, 2018

Hello,
Component work fine when app is fully loaded. But when i refresh the page or if i'm landing directly on this page i get a nuxt error.

logs says

render function or template not defined in component: anonymous

if i look deeper it's vue-server-renderer who return an error.

for fun i've try to use but the issue stay the same.

Anyone have an idea to solve this ?

thanks.

--sorry for my english, my french is better--

@BrunoLambert
Copy link

Same problem here.

@FranckFreiburger
Copy link
Owner

Duplicate of #13

@FranckFreiburger FranckFreiburger marked this as a duplicate of #13 Jan 29, 2019
@evatxu
Copy link

evatxu commented Mar 10, 2020

same question. how to fix?

@songjishuai
Copy link

I also encountered the same problem. Is there a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants