-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import issue #11
Comments
Hi @dkameneck , Did you try using the This should work. const ukModulusChecking = require("uk-modulus-checking");
new ukModulusChecking({ accountNumber: '<accountNumber>', sortCode: '<sortCode>' }).isValid(); |
Hey the issue was in 'fs" module. |
Hey @dkameneck , just trying to implement this check into a form in .vue page here too. |
Hey @leotm ! My problem was with opening that file with rules. I simply converted that .json file to .js. If you don't understand what I did, let me know, I still have whole project converted to work with vue apps, and without using fs module. Btw. fs module opens files, which is "forbidden" on client side, otherwise writing trojans would be super easy. |
Thanks @dkameneck ! Which file were you trying to open with which rules? |
Hey @leotm ! |
Nvm, didn't notice that i can upload it here at first. |
@franciscocardoso Is there any reason that you wouldn't be open to incorporating such a fix into the main project? |
If you are interested I have a fork that I can create a PR for: master...connorwyatt:master |
Hi!
I have problems importing this module.
After installing it via npm and importing it like:
import UkModulusChecking from 'uk-modulus-checking/src'
import UkModulusChecking from 'uk-modulus-checking'
var UkModulusChecking = require('uk-modulus-checking')
I always end up with the same error:
This dependency was not found:
To install it, you can run: npm install --save fs
I tried installing fs, but it doesn't change anything.
I am using Vue.js on my project.
Looks like I am missing something to do before importing
The text was updated successfully, but these errors were encountered: