Skip to content

Webpack: Module parse failed: Unexpected token (341:14) #21

Closed
@leonardlin

Description

@leonardlin

I'm tried to use the module with my vuejs project.

I get the error below:

./node_modules/vue-pivottable/src/PivottableUi.js
Module parse failed: Unexpected token (341:14)
You may need an appropriate loader to handle this file type.
| 	  : h(Pivottable, {
|             props: {
|               ...props,
|               tableMaxWidth: this.tableMaxWidth
|             }
 @ ./node_modules/vue-pivottable/src/index.js 2:0-44
 @ ./src/main.ts
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8081 webpack/hot/dev-server ./src/main.ts

this is my loader?

{
        test: /\.js$/,
        use: utils.scriptLoaders(scriptLoadersOptions).js,
        include: [resolve('src'), resolve('test')]
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions