Skip to content

Error: Cannot find module core-js/proposals/array-flat-and-flat-map #962

@mtmckenna

Description

@mtmckenna

Intended outcome:

Trying to install/run a serverless app using apollo-server-lambda.

Actual outcome:

When running apollo-server-lambda v2.3.3, I get an error when running the server in apollo-env. That error looks like this:

'Error: Cannot find module \'core-js/proposals/array-flat-and-flat-map\'',

I think the issue is that apollo-env pins the core-js dependency to ^3.0.0-beta.3, which currently resolves to 3.0.0-beta.12. From the looks of it, the issue is that, between beta.11 to beta.12, the array-flat-and-flat-map.js has moved?

How to reproduce the issue:

I think running any app with apollo-server-lambda v2.3.3 should do it.

Versions

apollo-env 0.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions