christianalfoni / webpack-bin

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

Module not found: Error: Can't resolve 'vuelidate/lib/validators' #231

Closed ScreamZ closed 7 years ago

ScreamZ commented 7 years ago

Hey,

for some reason can't import vuelidate :(

https://www.webpackbin.com/bins/-Kg9NT7oFQi1eGubcn8P

Does anyone knows why ?

Thanks

christianalfoni commented 7 years ago

@ScreamZ could you try importing vuelidate/lib/validators/index ? Webpackbin does not currently have logic to translate /index.js paths into directory, other than the entry point iself. Should fix that though... but yeah, please confirm :)

ScreamZ commented 7 years ago

@christianalfoni Was this, nice catch ;)

https://www.webpackbin.com/bins/-Kg9XqY8rVXsOoZjrR1t

(Had to make another one bin because couldn't edit mine anymore)

Thanks buddy, keep the good job :)

christianalfoni commented 7 years ago

Okay, I fixed so that folder/index.js can be pointed to as folder now as well... so your previous code should work now :)

ScreamZ commented 7 years ago

@christianalfoni Thanks ! ;)