Va1 / browser-sync-webpack-plugin

Easily use BrowserSync in your Webpack project.
MIT License
370 stars 42 forks source link

Error: Cannot find module 'xmlhttprequest' #7

Closed mydearxym closed 8 years ago

mydearxym commented 9 years ago

i just installl and require it

var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var BrowserSyncPlugin = require('browser-sync-webpack-plugin');

error shows:

$ Error: Cannot find module 'xmlhttprequest'
....
mydearxym commented 9 years ago

then i install 'xmlhttprequest'

$ Error: Cannot find module 'engine.io-parser'

where is the end ?

Va1 commented 9 years ago

Hey!

Sorry for delayed reply. The packages you are missing are seem to be required by browser-sync itself and not by this plugin.

Though, I did a fresh project in order to check if it works if I just install webpack, browser-sync and this plugin (+ couple of loaders) and it does work without any exceptions.

So I suggest checking if you have all the dependencies specified in your package.json, then removing node_modules directory and hitting npm install one more time.

Regards.

Va1 commented 8 years ago

I assume, this issue is resolved, as there're no updates. Thank you.