Skip to content

mapd-crossfilter stopped working after upgrading to babel7 and webpack4 #80

@sandipp

Description

@sandipp

🪲 bug

  • Operating System and version: OS X 10.14.4
  • Browser and version: Chrome 73 on macOS (Mojave)
  • Steps to reproduce (including dashboard link): Upgraded React application configuration by using newer version of babel7 and webpack4
  • Description of issue: mapd-crossfilter is failing with the following issue-
TypeError: Cannot set property 'resultCache' of undefined 
(function (exports) {
  crossfilter.version = "1.3.11";
  exports.resultCache = resultCache;
...

This is my babel configuration -

"babel": {
    "plugins": [
      "add-module-exports",
      "@babel/plugin-syntax-dynamic-import",
      [
        "@babel/plugin-proposal-decorators",
        {
          "legacy": true
        }
      ],
      [
        "@babel/plugin-proposal-class-properties",
        {
          "loose": false
        }
      ]
    ],
    "presets": [
      [
        "@babel/preset-env",
        {
          "modules": false
        }
      ],
      [
        "react-app",
        {
          "helpers": false,
          "absoluteRuntime": false
        }
      ]
    ]

  }

And this is my webpack configuration -

https://gist.github.com/sandipp/282bbbc1d23e6e9c2d8e2b01dc1077d7

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