openexchangerates / money.js

money.js is a tiny (1kb) javascript currency conversion library, for web & nodeJS
http://openexchangerates.github.io/money.js
MIT License
1.46k stars 127 forks source link

Error in render : Fx error when rendering it as a module #36

Closed abrhambas01 closed 4 years ago

abrhambas01 commented 4 years ago

I'm using vue.js in this app and I tried importing the js file as an es6 module something like this:

import fx from './money.js';
export default {
// lots of code here..
}

I also tried including it as a JS module something like this

<script src="js/money.js"></script>

still i get an

[Vue warn]: Error in render: "fx error"
found in PlegeOffer.vue

and

fx error or something like that