Chapters
00:00 - Creating the CourseActions Component
03:42 - Exposing Methods Outside of the CourseActions Component
06:30 - Using our CourseActions Component
06:59 - Testing the CourseActions Component
07:10 - Preloading Statuses, Access Levels, & Difficulties on the Org
07:56 - Course Store Validation
09:10 - The Store Course Action
10:31 - Courses Store Route Handler
11:21 - Defining the Courses Store Route
11:36 - Ordering the Org Preloads
11:56 - Testing & Debugging a NaN Error on our Course Store
Join The Discussion! (3 Comments)
Please sign in or sign up for free to join in on the dicussion.
gribbl
Hello,
With
useTemplateRef
, I’m encountering type errors with TypeScript because the component is of typeunknown
. I also believe this issue is caused byunplugin-vue-components
. All auto-imported components are of typeunknown
, and VSCode doesn’t provide IntelliSense for these components (e.g., their attributes). However, if I manually import the components, everything works fine. Is there a solution to fix this?Please sign in or sign up for free to reply
tomgobich
Hi gribbl!!
So, I looked into this a little bit, and it seems like everything TypeScript related for these components that are auto-imported via unplugin-vue-components begins working if you add the generated
components.d.ts
file into the/intertia/tsconfig.json
include
array, like below.Here's the result:
I'm going to go tack a note about this into lesson 1.4, where we setup unplugin-vue-components!
Please sign in or sign up for free to reply
gribbl
Thank you. 👍
Please sign in or sign up for free to reply