tomitrescak / Meteor-Boilerplate-Webpack-Mantra-Typescript

Meteor boilerplate for mantra applications, supporting webpack, mantra and typescript
17 stars 3 forks source link

Example app doesn't work: "Component not found" #3

Open swennemans opened 8 years ago

swennemans commented 8 years ago

I try to run the example, but it doesn't start. The error is:

Uncaught TypeError: Cannot read property 'Component' of undefined

Any ideas? It seems that React is imported.

tomitrescak commented 8 years ago

Yes, I just bumped into that. There is some issue with React itself and I reported it to @eXon

For now, please do

import { Component } from "react" instead of import React from "react"

I will update the project as soon as possible.

swennemans commented 8 years ago

I've ported my existing Mantra project to Webpack, and made some changes. And everything works as expected. From what I can see the only thing I do differently is importing React from NPM, defined in webpack.packages.json

Hope it helps.

tomitrescak commented 8 years ago

Can you maybe do a PR, or you did not use boilerplate at all?

swennemans commented 8 years ago

Sorry I didn't use the boilerplate at all.