Open leonplata-tx opened 2 years ago
FWIW, I was seeing this until I added declarations to my main.ts as described in https://github.com/asigloo/vue-dynamic-forms/issues/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.
Figure I should add the specific changes to main.ts that I'm referring to.
import { createDynamicForms } from '@asigloo/vue-dynamic-forms';
const VueDynamicForms = createDynamicForms({});
app.use(VueDynamicForms);
Actually...scratch that. The error did disappear, but it's showing up again after reopening the project. Must have just been a fluke.
I am still getting this. Any update? still no typescript declarations detected. can you maybe have a look if it is correct?
Actually...scratch that. The error did disappear, but it's showing up again after reopening the project. Must have just been a fluke.
how did you exactly solve this? I can't compile it because it screams for TS declarations. I am unable to find them
please publish your typescript .d.ts use run build:tsd.
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