Skip to content

babel-noob: Object.values not transpiled by babel? #1

@elsherbini

Description

@elsherbini

First off, thanks for making this example repo and for making markovjs!

I'm using node v6.11.2
I can run this example fine with npm run-script start:dev

When I build using npm run-script build and try to run with npm run-script start I get the following error:

➜  markovjs-gridworld git:(master) npm run-script start

> [email protected] start /home/josephe/markovjs-gridworld
> node ./lib/index.js

/home/josephe/markovjs-gridworld/node_modules/regenerator-runtime/runtime.js:573
        throw exception;
        ^

TypeError: Object.values is not a function

I can solve this by installing the object.values shim and manually changing lib/index.js. Any idea why object.values doesn't get transpiled using the current defaults?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions