使用带有meteorhacks的npm模块的Meteor.js Browserify错误:npm和browserify

时间:2016-03-02 03:59:45

标签: node.js meteor reactjs npm

Browserify文件(client / app.browserify.js):

react-typist = require('react-typist');

packages.json:

{
  "redis": "0.8.2",
  "github": "0.1.8",
  "react-typist": "0.3.0"
}

我收到此错误:

Browserify错误:

While processing files with cosmos:browserify (for target web.browser):
client/app.browserify.js: Parsing file /Users/*********/www/app-react/packages/npm-container/.npm/package/_stream_0.js: Assigning to rvalue (1:0)

Browserify options:
>  {
>  "basedir": "/Users/***********/www/app-react/packages/npm-container/.npm/package",
>  "debug": true,
>  "transforms": {}
}

1 个答案:

答案 0 :(得分:0)

react-typist = require('react-typist');
分配变量时

无效。它应该是

Typist = require('react-typist');