Skip to content

Commit

Permalink
Update index.md documentation with correct install path
Browse files Browse the repository at this point in the history
Use the full import path in documentation as recommended in the PR here primer#1731 (comment) to avoid `Uncaught DOMException` errors around double registration of web components.
  • Loading branch information
writercoder authored Jul 13, 2023
1 parent 86092d9 commit 0eb3046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Optionally, to add the JavaScript behaviours, in your `application.html.erb` in
Or alternatively, you can install the `@primer/view-components` npm package and in your JavaScript code add:

```js
import '@primer/view-components'
import '@primer/view-components/app/assets/javascripts/primer_view_components.js'
```

You can also import only the components you need:
Expand Down

0 comments on commit 0eb3046

Please sign in to comment.