question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't import FileInputComponent

See original GitHub issue

It 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:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
merlosycommented, Jan 19, 2019

Hi @jzgoda ,

FileInputComponentand FileInputConfig are now exported from the lib model (since 1.1.0)! Closing this issue

1reaction
merlosycommented, Jan 10, 2019

coming soon 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found