File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ Then add the following line to your `app/javascript/packs/application.js` pack:
7171
7272``` js
7373// If you are using `import` syntax
74- import ' @client-side-validations/client-side-validations/src '
74+ import ' @client-side-validations/client-side-validations'
7575
7676// If you are using `require` syntax
7777require (' @client-side-validations/client-side-validations' )
@@ -80,7 +80,7 @@ require('@client-side-validations/client-side-validations')
8080##### Heads-up for Turbo and Turbolinks users #####
8181
8282If you are using [ Turbo] ( https://github.com/hotwired/turbo-rails ) , use the
83- ` import ` syntax and make sure that ` @client-side-validations/client-side-validations/src `
83+ ` import ` syntax and make sure that ` @client-side-validations/client-side-validations `
8484is imported ** after** ` @hotwired/turbo-rails ` , so ClientSideValidations can properly detect
8585` window.Turbo ` and attach its event handlers.
8686
You can’t perform that action at this time.
0 commit comments