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 find module 'envify' from '...\node_modules\react-widgets' #314

Closed
wzup opened this issue Feb 7, 2016 · 1 comment
Closed

Cannot find module 'envify' from '...\node_modules\react-widgets' #314

wzup opened this issue Feb 7, 2016 · 1 comment

Comments

@wzup
Copy link

wzup commented Feb 7, 2016

Trying to build vendors bundle with browserify I've received this error:

Cannot find module 'envify' from '...\node_modules\react-widgets'

Why? How to solve?

Here is my gulp task to build vendor bundle:

   var vendors = ['jquery',
        'react',
        'react/addons',
        'react-dom',
        'moment',
        'react-intl',
        'react-widgets/lib/DropdownList'
];
    var b = browserify({
        debug: true,
        noParse: vendors,
        transform: ['babelify'],
        require: vendors
    });
    b.bundle()
        .on('error', function(err) {
            console.error(err.message);
            this.emit('end');
        })
        .pipe(source('vendors.js'))
        .pipe(gulp.dest('./public/js'));

UPD:

Here is your package.json:
1)
widgets_package json - sublime text unregistered 2016-02-07 20 20 19

widgets_package json - sublime text unregistered 2016-02-07 20 21 05

Being specified as devDependencies it is not either installed or smth. So the solution might be somewhere here, I think.
More readings for you remix-run/react-router#105

@jquense
Copy link
Owner

jquense commented Feb 7, 2016

dup #308

@jquense jquense closed this as completed Feb 7, 2016
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

2 participants