You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
I'm not being able to make the typings work on .ts files, the following errors are being shown:
Visual Studio Code 1.62.0:
"Could not find a declaration file for module '@asigloo/vue-dynamic-forms'."
IntelliJ IDEA 2021.2:
TS2307: Cannot find module '@asigloo/vue-dynamic-forms/dist' or its corresponding type declarations.
Using npm run serve command (on a new scaffolded vue project):
TS7016: Could not find a declaration file for module '@asigloo/vue-dynamic-forms'. 'H:/hello-world/node_modules/@asigloo/vue-dynamic-forms/dist/as-dynamic-forms.cjs.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/asigloo__vue-dynamic-forms` if it exists or add a new declaration (.d.ts) file containing `declare module '@asigloo/vue-dynamic-forms';`
Describe the bug
Scaffold a new Vue 3 project with Vue CLI: vue create hello-world with TypeScript feature
Run npm install @asigloo/vue-dynamic-forms.
Create a main.ts file if not exist.
Add import { createDynamicForms } from '@asigloo/vue-dynamic-forms' to main.ts file.
Expected behavior
The IDE can recognize the typings of imported modules from @asigloo/vue-dynamic-forms on TypeScript files.
FWIW, I was seeing this until I added declarations to my main.ts as described in #235, as well as the "failed to resolve component" described in the ticket. The ts error went away and everything started working after I made those updates.
Version
3.x.x (Vue 3.x)
Describe the bug
I'm not being able to make the typings work on .ts files, the following errors are being shown:
Visual Studio Code 1.62.0:
IntelliJ IDEA 2021.2:
Using
npm run serve
command (on a new scaffolded vue project):Describe the bug
vue create hello-world
with TypeScript featurenpm install @asigloo/vue-dynamic-forms
.main.ts
file if not exist.import { createDynamicForms } from '@asigloo/vue-dynamic-forms'
tomain.ts
file.Expected behavior
The IDE can recognize the typings of imported modules from
@asigloo/vue-dynamic-forms
on TypeScript files.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: