olimart PRO said over 3 years ago on Client Side Validation with StimulusJS :
Hi. How would you turn that into an npm package? Should validate.js be bundled with this package or be installed in the main application (like StimulusJS library).

David Kimura said over 3 years ago on Client Side Validation with StimulusJS :
I would say that it should be listed as a dependency of the npm package as this would make it automatically install for the user. It would be a bit strange to also make them install `validate.js` in addition to the stimulus library.

olimart PRO said over 3 years ago on Client Side Validation with StimulusJS :
Thanks. However, it raises an error because validate.js is missing ``` Error: Could not load validate.js (imported by /stimulus-validate/src/index.js): ENOENT: no such file or directory, open 'validate.js' ``` Any idea?

David Kimura said over 3 years ago on Client Side Validation with StimulusJS :
Did you add the validate.js library as a dependency in package.json

olimart PRO said over 3 years ago on Client Side Validation with StimulusJS :
I did.

atstockland said over 1 year ago on Client Side Validation with StimulusJS :
You think this approach is still valid today?  Or, are there better approaches with Hotwire?

David Kimura said over 1 year ago on Client Side Validation with StimulusJS :
  I think so. There would be code changes to bring it up to a more modern hotwire/stimulus syntax, but overall it would be be the same.

Login to Comment