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
CvFileUploader throws error when used in my project. The error is "Failed to resolve import", which is related to CvForm component import in the file-uploader component.
In my env.d.ts I have declared the path as "declare module '@carbon/vue/src/components/*'", and I tried with different variations as well.
Still getting error:
What works for me is to modify the CvFileUploader component and remove the CvForm wrapper inside, but of course that's not permanent solution.
Any recommendation? Is this a bug?
Is this a feature request (new component, new icon), a bug, or a general issue?
issue
Is this issue related to a specific component?
CvFileUploader
What did you expect to happen? What happened instead? What would you like to see changed?
Expected the component to load, instead it throws error.
What browser are you working in?
Edge
What version of the Carbon Design System are you using?
3.0.12
What offering/product do you work on? Any pressing ship or release dates we should be aware of?
Steps to reproduce the issue
Step one
Step two
Step three
etc.
Additional information
Screenshots or code
Notes
The text was updated successfully, but these errors were encountered:
Hmm I cannot reproduce this. I think you are correct that its may have something to do with 'env.d.ts' file. What happens if you remove the "declare module " statement?
@davidnixon Error remained even after removal of all declarations from "env.d.ts".
It wouldn't be a solution anyway because without declarations the code would fail to compile from typescript.
I also must say that I use there practically all carbon components, and cv-file-uploader is the only one having this issue.
Failed to resolve import
Detailed description
CvFileUploader throws error when used in my project. The error is "Failed to resolve import", which is related to CvForm component import in the file-uploader component.
In my env.d.ts I have declared the path as "declare module '@carbon/vue/src/components/*'", and I tried with different variations as well.
Still getting error:
What works for me is to modify the CvFileUploader component and remove the CvForm wrapper inside, but of course that's not permanent solution.
Any recommendation? Is this a bug?
Steps to reproduce the issue
Additional information
The text was updated successfully, but these errors were encountered: