Haixing-Hu / vue-i18n

Internationalization plugin of Vue.js
MIT License
62 stars 9 forks source link

Can't require the module #3

Open thelinuxlich opened 8 years ago

thelinuxlich commented 8 years ago

This and vue-format are the only modules I'm receiving error when trying to require(webpack).

I've installed it with npm install vue-i18n-plugin --save

thelinuxlich commented 8 years ago

I see you're doing exports.install instead of module.exports on your modules, probably the culprit?

chrispappas commented 8 years ago

+1 - being able to use this with Webpack is key

kvdmolen commented 8 years ago

+1

DotCoyote commented 8 years ago

+1

turcottedanny commented 8 years ago

+1

Haixing-Hu commented 8 years ago

Hi, all.

I wrote the plugin according to the official document (although it's the document for 0.11):

http://011.vuejs.org/guide/extending.html#Extend_with_Plugins

And my demo page works very well (see demo/demo.js).

Is there something wrong? Could you please provide a complete testing case to reproduce the bug?