Skip to content
This repository was archived by the owner on Aug 14, 2026. It is now read-only.
This repository was archived by the owner on Aug 14, 2026. It is now read-only.

Cannot set property 'exports' of undefined #12

Description

@chrisfinch

Hi,

I had the same issue described in #7

After applying the solution (jspm install jsx@0.13-rc) I now get the following (presumably related) error:

quizzes.local.gutools.co.uk/:1 Uncaught (in promise) Error: Cannot set property 'exports' of undefined

The offending line:

module.exports = ReactApp;

My versions from config.js:


System.config({
  baseURL: "/assets",
  defaultJSExtensions: true,
  transpiler: "babel",
  babelOptions: {
    "optional": [
      "runtime"
    ],
    "blacklist": []
  },
  paths: {
    "github:*": "jspm_packages/github/*",
    "npm:*": "jspm_packages/npm/*"
  },

  packages: {
    "/assets/js/components": {
      "defaultExtension": false,
      "main": "/assets/js/components/ReactApp.jsx",
      "meta": {
        "*.jsx": {
          "loader": "jsx"
        }
      }
    }
  },

map: {

// ...

"jsx": "github:floatdrop/plugin-jsx@0.13-rc",

// ...

"github:floatdrop/plugin-jsx@0.13-rc": {
    "react-tools": "npm:react-tools@0.13.0-rc2"
}

Any ideas?

Thanks

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