Code Monkey home page Code Monkey logo

generate-page-webpack-plugin's People

Contributors

greenkeeper[bot] avatar jackub avatar joostvanwollingen avatar ndelangen avatar pksunkara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

generate-page-webpack-plugin's Issues

"object rest/spread properties" is not supported by default in Node.js v8.2.1

Summary

In Node.js v8.2.1, "object rest/spread properties" is not supported by default, --harmony option is needed.
https://node.green/#ES2018-features-object-rest-spread-properties

So @storybook/vue fails to run the following:

>npm run storybook

some-project\node_modules\generate-page-webpack-plugin\index.js:37
              ...acc,
              ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> 

Workaround

Currently, I call the command of start-storybook and build-storybook directly with --harmony option.
But if possible, I want you to support officially.

{
  "scripts": {
    "storybook": "node --harmony ./node_modules/@storybook/vue/bin/index.js -p 9001 -c .storybook",
    "build-storybook": "node --harmony ./node_modules/@storybook/vue/bin/build.js -c .storybook -o .out"
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.