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": {}
}
答案 0 :(得分:0)
react-typist = require('react-typist');
分配变量时无效。它应该是
Typist = require('react-typist');