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.

Cannot Add Product | Could not resolve 'fileService'.

See original GitHub issue

Not sure if this belongs in the admin-panel or in the core medusa repo, but I’m having a problem where I basically can’t add new products to the admin UI as every time I add one I get the following error:

Resolution path: fileService
AwilixResolutionError: Could not resolve 'fileService'.

new-product-fail

According to this core issue the problem is that the admin site is attempting to upload the images to a fileserver. This makes sense but:

  1. There are no images being uploaded, so it shouldn’t need to use the File Service
  2. The error message should be more friendly. It should say something like “Cannot upload image without File Service Plugin”.
  3. If you do need to set up the File Service before using the admin panel, you should really add more detailed documentation on that, at least a link at the bottom of the quickstart.

Steps to reproduce:

  1. Follow the quickstart guide in the main readme.md
  2. Try to add a new product, only filling out the name and not uploading any files.
  3. Attempt to add the new product

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
juanzgccommented, Mar 27, 2022

An option for a fix - might be to default to a placeholder image if no File is uploaded

0reactions
olivermrblcommented, Jun 21, 2022

Solved in #488

Read more comments on GitHub >

github_iconTop Results From Across the Web

[ExceptionHandler] Nest can't resolve dependencies of the ...
Trying to use my fileRepository: Repository<File> in my FileService, but I get the following error: [ExceptionHandler] Nest can't resolve ...
Read more >
Nest can't resolve dependencies of the ItemsService ...
In order to solve it you have to remove the ItemsController and ItemsService imports from the app.module.ts file.
Read more >
Store files on Tricentis File Service - Tosca
The file is located at C:\Program Files (x86)\TRICENTIS\Tosca Server\FileService. If your virus scanner does not offer this option, exclude the file storage ...
Read more >
Configure Client File Service - Tableau Help
Configure CFS on additional nodes · On the initial node, open a command prompt as administrator. · Find the node ID for the...
Read more >
Adding products - AWS Service Catalog
To add products to a portfolio, you either upload a new product directly to an existing portfolio or associate an existing product from...
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