HTML.Raw is undefined in Meteor+Blaze+React app after meteor/npm update


#1

My app uses the latest Meteor 1.4.1.1 with React for UI and use Blaze only for accounts-ui. It ran fine until I ‘meteor update’ and ‘npm update’ yesterday. Now the app show blank page because of the exception (TypeError: HTML.Raw is not a function) in template.main.js (below) which Blaze compiled from the simple main.html that provide the root for React.

Template.body.addContent((function() {
  var view = this;
  return **HTML.Raw('<div id="app-root"></div>');**
}));
Meteor.startup(Template.body.renderToDocument);

When I looked at the HTML object in console:-

I’m new to Meteor and have no idea what’s happening. I guess the Blaze’s global HTML object must have the .raw method for use here. But why it is missing?


#2

I have got the same issue and remove Blaze. No I have the same issue as https://github.com/meteor/meteor/issues/5580

My package.json dependencies are:

{
  "dependencies": {
    "leaflet": "^0.7.7",
    "localforage": "^1.4.0",
    "localforage-cordovasqlitedriver": "git://github.com/dagatsoin/localForage-cordovaSQLiteDriver.git#427ea7030efcbf1327f9480b41fcc7335419fd55",
    "meteor-node-stubs": "~0.2.0",
    "mobx": "^2.4.0",
    "mobx-react": "^3.5.1",
    "react": "^15.3",
    "react-addons-pure-render-mixin": "^15.3.0",
    "react-canvas": "^1.2.0",
    "react-dom": "^15.0.1",
    "react-router": "^2.2.4",
    "turf": "^2.0.2",
    "typestate": "^1.0.2"
  },
  "devDependencies": {
    "babel-plugin-transform-class-properties": "^6.9.1",
    "babel-plugin-transform-decorators": "^6.8.0",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-preset-decorators-legacy": "^1.0.0",
    "mobx-react-devtools": "^4.2.3",
    "onsenui": "^2.0.0",
    "react-onsenui": "^1.0.0"
  }
}