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

Using Nuxt: Module parse failed: Unexpected token #3

Closed
chantelprows opened this issue Nov 14, 2019 · 5 comments
Closed

Using Nuxt: Module parse failed: Unexpected token #3

chantelprows opened this issue Nov 14, 2019 · 5 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@chantelprows
Copy link

getting error
Module parse failed: Unexpected token (4925:17)
You may need an appropriate loader to handle this file type.
| render(h, context) {
| const data = {
| props: { ...context.props,
| name
| },
whenever I try to build

@iliyaZelenko
Copy link
Owner

I was informed about the same error earlier iliyaZelenko/tiptap-vuetify#106. I can’t understand exactly what this error is about.

I updated my nuxt demo to current package's version and everything works fine there.

A little google, I found such a solution, it can help.

I have an uncertain assumption that this may be due to some builds of Vue. Maybe you know what build you use?

I really want to help, but I don’t know what’s the problem.

@iliyaZelenko iliyaZelenko added help wanted Extra attention is needed question Further information is requested labels Nov 14, 2019
@iliyaZelenko iliyaZelenko changed the title Using Nuxt Using Nuxt: Module parse failed: Unexpected token Nov 14, 2019
@jggj21
Copy link

jggj21 commented Jan 15, 2020

I get the same problem, how was it corrected?

@vedmant
Copy link

vedmant commented Jun 1, 2020

I also have "Unexpected token 'export'"

@imshadowz
Copy link

imshadowz commented Jul 24, 2020

Hello, I got same problem and I solved by add this line to nuxt.config.js

build: {
    transpile: ['vuetify/lib', "tiptap-vuetify"]
}

Hope it can help you too.

@iliyaZelenko
Copy link
Owner

Hello, I got same problem and I solved by add this line to nuxt.config.js

build: {
    transpile: ['vuetify/lib', "tiptap-vuetify"]
}

Hope it can help you too.

This is also indicated in the description. Then I mark it as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants