Can't import FileInputComponent
See original GitHub issueIt doesn’t look like FileInputComponent
is being exported in the index.d.ts
file, would it be possible to add this?
I’m trying to programmatically set the value by using the writeValue
method when a file is added through drag/drop.
If I try to import like this:
import { FileValidator, FileInput } from 'ngx-material-file-input';
import { FileInputComponent } from 'ngx-material-file-input/lib/file-input/file-input.component';
@ViewChild(FileInputComponent)
fileInput: FileInputComponent;
I get the error:
ERROR in ./src/app/upload.component.ts
Module not found: Error: Can't resolve 'ngx-material-file-input/lib/file-input/file-input.component' in '/Users/me/my-app/src/app/upload'
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
When I import fileinput module, use the input method , it report ...
python - When I import fileinput module, use the input method , it report AttributeError: 'module' object has no attribute 'input' - Stack ......
Read more >How You Can Fix The Biggest Problem With React File Upload
POST request; input and button. First, the React, {Component}, and Axios modules are imported into the JS compiler. Then ...
Read more ><input type="file"> - HTML: HyperText Markup Language | MDN
When a file is chosen using an <input type="file"> , the real path to the source file is not shown in the input's...
Read more >How to Use a Simple Form Submit with Files in React
In your App.js file, create a basic form that with a name field and a file input. ... Now, add state in the...
Read more >lightning-file-upload - documentation - Salesforce Developers
A lightning-file-upload component provides an easy and integrated way for users to ... By default, guest users can't upload files and don't have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @jzgoda ,
FileInputComponent
andFileInputConfig
are now exported from the lib model (since 1.1.0)! Closing this issuecoming soon 😃