posva / vue-plugin-template

🚀 Solid foundation to start a Vue plugin with the best developer experience and a focus on performance
MIT License
191 stars 27 forks source link

Cannot assign to read only property 'exports' of object '#<Object>' #10

Closed pirony closed 7 years ago

pirony commented 7 years ago

I get this error in myplugin.common.js when I try to use myplugin in another app... I think it's an issue with mix module.exports and export, but I can't find a fix Any idea? Keep up the good work! ;)

pirony commented 7 years ago

I have a bit more infos... The error is thrown only when the plugin is used with Nuxt, in every other cases it works well.

posva commented 7 years ago

what was happening at the end?

pirony commented 7 years ago

I was loading the plugin from outside node_modules for testing purpose, as soon as I put it in node_modules, it worked like a charm

posva commented 7 years ago

ok, thanks for reporting back