paperbits / paperbits-demo

This repository shows an example how developers can use Paperbits to build web apps with rich content authoring capabilities.
https://demo.paperbits.io
MIT License
297 stars 90 forks source link

uploaded picture with picture widget doesnt load on publish #232

Open an33k opened 10 months ago

an33k commented 10 months ago

Describe the bug uploaded picture with picture widget doesnt load on publish but the link file works

To Reproduce Steps to reproduce the behavior:

  1. upload images using upload file with picture widget
  2. publish the change
  3. check the publish picture it doesnt load the picture

Expected behavior uploaded picture to load on publish Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2023-09-15 at 9 15 30 PM

Desktop (please complete the following information):

azaslonov commented 10 months ago

@an33k, do you mind providing a bit more context: Do you use any storage providers or you're describing local envionment with default components in paperbits-demo project?

an33k commented 10 months ago

i am using local environment with the default media widget where you can upload files and those files are then stored as base64 strings in the demo.json file which when i run the publish command creates a dist folder where the pictures gets saved in the content folder but those pictures dont load from there cant view those pictures and i am not using any storage provider.

Screenshot 2023-09-18 at 8 16 29 AM Screenshot 2023-09-18 at 8 12 59 AM
an33k commented 10 months ago

i have also tried to add firebase as storage provider but it doesnt work either gives error in design Uncaught Error: Unable to resolve collection "widgetHandlers": _validateActiveBindingCount@http://localhost:8081/editors/scripts/paperbits.js:57605:23 _getActiveBindings@http://localhost:8081/editors/scripts/paperbits.js:57591:32 _createSubRequests@http://localhost:8081/editors/scripts/paperbits.js:57634:26 ./node_modules/inversify/lib/planning/planner.js/_createSubRequests/</<@http://localhost:8081/editors/scripts/paperbits.js:57658:35 ./node_modules/inversify/lib/planning/planner.js/_createSubRequests/<@http://localhost:8081/editors/scripts/paperbits.js:57657:26 _createSubRequests@http://localhost:8081/editors/scripts/paperbits.js:57637:20 plan@http://localhost:8081/editors/scripts/paperbits.js:57679:27 ./node_modules/inversify/lib/container/container.js/Container.prototype._planAndResolve/Container@http://localhost:8081/editors/scripts/paperbits.js:57201:37 ./node_modules/inversify/lib/container/container.js/Container.prototype._get@http://localhost:8081/editors/scripts/paperbits.js:57194:44 ./node_modules/inversify/lib/container/container.js/Container.prototype.getAll@http://localhost:8081/editors/scripts/paperbits.js:57123:21 ./node_modules/@paperbits/common/injection/inversifyInjector.ts/bindCollectionLazily/Collection/<@http://localhost:8081/editors/scripts/paperbits.js:110596:51 @http://localhost:8081/editors/scripts/paperbits.js:34656:12 run@http://localhost:8081/editors/scripts/paperbits.js:34630:5 listener@http://localhost:8081/editors/scripts/paperbits.js:34641:6 node_modules paperbits.js:110600

task.js:61 run task.js:35 listener task.js:46