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

Compiling error using vue-cli #17

Closed
mrleblanc101 opened this issue Apr 29, 2018 · 5 comments
Closed

Compiling error using vue-cli #17

mrleblanc101 opened this issue Apr 29, 2018 · 5 comments

Comments

@mrleblanc101
Copy link

mrleblanc101 commented Apr 29, 2018

Error:

Add @babel/plugin-proposal-object-rest-spread (https://git.io/vb4Ss) to the 'plugins' section of your Babel config to enable transformation.

My .babelrc:

{
  "presets": [
    "@vue/app"
  ],
  "plugins": [
    "transform-object-rest-spread",
    "@babel/plugin-proposal-object-rest-spread"
  ]
}

Build trace:

Trace: The node type SpreadProperty has been renamed to SpreadElement
    at Object.isSpreadProperty (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/types/lib/validators/generated/index.js:4080:11)
    at hasSpread (/Users/mrleblanc/GitHub/portfolio/node_modules/babel-plugin-transform-object-rest-spread/lib/index.js:38:13)
    at PluginPass.ObjectExpression (/Users/mrleblanc/GitHub/portfolio/node_modules/babel-plugin-transform-object-rest-spread/lib/index.js:234:14)
    at newFn (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/visitors.js:243:21)
    at NodePath._call (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/path/context.js:65:18)
    at NodePath.call (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/path/context.js:40:17)
    at NodePath.visit (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/path/context.js:100:12)
    at TraversalContext.visitQueue (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/context.js:144:16)
    at TraversalContext.visitMultiple (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/context.js:99:17)
    at TraversalContext.visit (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/context.js:183:19)
    at Function.traverse.node (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/index.js:106:17)
    at NodePath.visit (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/path/context.js:107:18)
    at TraversalContext.visitQueue (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/context.js:144:16)
    at TraversalContext.visitSingle (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/context.js:104:19)
    at TraversalContext.visit (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/context.js:185:19)
    at Function.traverse.node (/Users/mrleblanc/GitHub/portfolio/node_modules/@babel/traverse/lib/index.js:106:17)
@mrleblanc101
Copy link
Author

Seems to be related to the fact that I'm using vue/cli@3.0.0-beta.9
Any idea why ?

@mrleblanc101
Copy link
Author

When using vue/cli@2.9.3:

Module build failed: Error: Couldn't find preset "es2015" relative to directory

@mrleblanc101
Copy link
Author

Running an npm install in the node_modules/vue-fullpage.js fixed all my problem...
Weird. I'm not an expert in node but never had to do this after installing a package.
Shouldn't this happen automatically ?

@ismet
Copy link

ismet commented May 1, 2018

I got exactly the same error as @mrleblanc101
I could fix it by doing what he suggests: "run npm install in /node_modules/vue-fullpage.js"
The issue must be related with vue-fullpage.js.

@alvarotrigo
Copy link
Owner

This should be now fixed on the latest version 0.0.2

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

No branches or pull requests

3 participants