christianalfoni / webpack-bin

A webpack code sandbox
http://www.webpackbin.com
MIT License
710 stars 75 forks source link

Error when trying to import from `history` library #147

Open ntilwalli opened 8 years ago

ntilwalli commented 8 years ago

I love Webpackbin, thanks for making it! I'm seeing Module not found: Error: Cannot resolve module 'history' in /api/sandbox/1464905685733815 when I try and import {createHistory} from 'history' (http://www.webpackbin.com/NkAGJsYXZ) Am I doing something wrong?

christianalfoni commented 8 years ago

Hi there,

Hm, this sounds a bit weird. Could you try creating a bin with only history and see if same thing happens?

ShayMatasaro commented 8 years ago

seeing the same issue http://www.webpackbin.com/4kQ6gVTQZ

ntilwalli commented 8 years ago

Thanks for getting back. I updated webpackbin (http://www.webpackbin.com/Nyl5-4VE-) to only import the history library and the issue is still there...

christianalfoni commented 8 years ago

Okay, cool, thanks for testing! There must be something in history that is not compatible. Have to test it using the: https://github.com/christianalfoni/npm-extractor

If you want to check it please do, I am not able to dedicate as much time as I want lately. But will get back on this soon :)

fiatjaf commented 8 years ago

I can't load a package I've published also. I don't use Webpack for local development, I use Browserify, what does my package need to be compatible?