Skip to content

× ModuleNotFoundError Could not find module in path #499

@drcmda

Description

@drcmda

I seem to have problems including anything that imports ESM. Here is the sandbox: https://codesandbox.io/s/vjzy5o7yy0

I bablify sources using the following:

{
    "plugins": [
        [
            "@babel/plugin-transform-runtime",
            {
                "helpers": true,
                "polyfill": false,
                "regenerator": true,
                "moduleName": "@babel/runtime"
            }
        ]
    ],
    "presets": [
        ["@babel/preset-env", { "loose": true, "modules": false }],
        "@babel/preset-stage-2",
        "@babel/preset-react"
    ]
}

and package.json points to:

  "module": "dist/index.js",

It works fine locally but something throws it off in CSB.

screen shot 2018-02-05 at 21 35 43

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