Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set property 'exports' of undefined #12

Open
chrisfinch opened this issue Aug 14, 2015 · 0 comments
Open

Cannot set property 'exports' of undefined #12

chrisfinch opened this issue Aug 14, 2015 · 0 comments

Comments

@chrisfinch
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant